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 ' ) group by contents.id ORDER BY publish_date desc LIMIT 4' 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 JOIN content_taxonomy on contents.id = content_taxonomy.content_id WHERE contents.published=1 and publish_date <= '2016-08-29 09:00:00' and contents.magazine_id = 13 and ( contents.id != '101039') and contents.content_type_id = 2486 and content_taxonomy.taxonomy_id in ( , ) group by contents.id ORDER BY publish_date desc LIMIT 4