General Error
Could not query level information


SQL Error : 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 'desc LIMIT 12 OFFSET 84' at line 7

SELECT * FROM ( SELECT p.topic_id, ad.real_filename, ad.download_count, ad.attach_id, ad.filetime, ld.level_type, ld.num_ratings, ld.num_difficulty_ratings, u.user_id, u.username, u.user_avatar, u.user_avatar_type, ld.screenshot_id, ad.comment FROM eets_attachments a, eets_attachments_desc ad, eets_users u, eets_posts p, eets_level_data ld WHERE a.attach_id = ad.attach_id AND a.user_id_1 = u.user_id AND p.post_id = a.post_id AND ld.attach_id = ad.attach_id ) AS t1 LEFT JOIN ( SELECT SUM(rating) AS score, SUM(difficulty_rating) AS difficulty, attach_id as rating_id FROM eets_level_rating GROUP BY attach_id ) AS t2 ON t1.attach_id=t2.rating_id ORDER BY desc LIMIT 12 OFFSET 84

Line : 146
File : viewlevels.php