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 'AND t.entry_id = ecp.entry_id AND t.weblog_id = 24' at line 1

Query: SELECT * FROM eir_category_posts AS ecp, eir_weblog_titles AS t WHERE ecp.cat_id = AND t.entry_id = ecp.entry_id AND t.weblog_id = 24