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 ') ORDER BY published DESC LIMIT 0,9' at line 1SELECT c1.*,cat1.* FROM content AS c1 JOIN category AS cat1 ON(c1.category_id=cat1.category_id AND c1.category_id='') WHERE c1.languages LIKE '%ar%' AND c1.category_id='' AND c1.content_ID NOT IN () ORDER BY published DESC LIMIT 0,9