A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND aly_torrents.fk_category = aly_categories.id_category AND aly_torrents.f' at line 9
SELECT aly_torrents.*, aly_users.username as username, aly_categories.description as category, aly_subcategories.description as subcategory, aly_nations.flag , aly_nations.name AS country FROM aly_torrents, aly_categories, aly_users, aly_users_torrents, aly_subcategories, aly_nations WHERE aly_torrents.id_torrent = aly_users_torrents.fk_torrent AND aly_users_torrents.fk_user = aly_users.id_user AND aly_users.id_user = AND aly_torrents.fk_category = aly_categories.id_category AND aly_torrents.fk_subcategory = aly_subcategories.id_subcategory AND aly_torrents.fk_nation = aly_nations.id_nation AND aly_torrents.payed = '1'