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 ((title LIKE '%%') or id IN (select content_id from content_taxonomy where ' at line 1
SQL Statement: SELECT count(*) as total_records FROM contents WHERE contents.published='1' and date(contents.publish_date) <= '2024-03-28' and magazine_id = '16' and content_type_id = and ((title LIKE '%%') or id IN (select content_id from content_taxonomy where ( taxonomy_id='68119' ) ) )