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 'or content_taxonomy.taxonomy_id= or content_taxonomy.taxonomy_id= ) and taxon' at line 1
SQL Statement: SELECT contents.id,contents.title,contents.content_type_id,contents.primary_image,contents.author_name,contents.slug,contents.summary,contents.primary_issue_slug,contents.publish_date FROM contents WHERE contents.published=1 and DATE(publish_date) <= '2015-09-01' and ( contents.magazine_id = '5') and ( contents.id != '29634') and ( contents.content_type_id = '2554') and id in (select content_id from content_taxonomy join taxonomy on taxonomy.id=content_taxonomy.taxonomy_id where ( content_taxonomy.taxonomy_id= or content_taxonomy.taxonomy_id= or content_taxonomy.taxonomy_id= ) and taxonomy.ignore_flag=0) group by contents.id ORDER BY publish_date desc LIMIT 4