Error!

MySQL Error: 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 published=1 AND magazine_id=1 ORDER BY publish_date desc LIMIT 5' at line 1
SQL Statement: SELECT * FROM contents WHERE content_type_id= AND published=1 AND magazine_id=1 ORDER BY publish_date desc LIMIT 5