MySQL ERROR:

Error Number: 1064

Description: 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 ')) ORDER BY `year` DESC' at line 1

Query: SELECT DISTINCT YEAR(FROM_UNIXTIME(`entry_date`)) AS `year`, exp_categories.cat_name AS `category_name`, exp_weblog_titles.weblog_id, exp_category_posts.cat_id FROM (exp_weblog_titles INNER JOIN exp_category_posts ON exp_weblog_titles.entry_id = exp_category_posts.entry_id) INNER JOIN exp_categories ON exp_category_posts.cat_id = exp_categories.cat_id WHERE ((weblog_id=5) AND (exp_category_posts.cat_id=)) ORDER BY `year` DESC