A Database Error Occurred

Error Number: 1064

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 a.id NOT IN ('1072') AND a.publish_date <= NOW() UNION ALL SELECT ' at line 4

SELECT a.title, a.thumb, a.url, a.hits, b.id AS category, b.name AS category_name, c.url AS organization_url, c.organization_name, c.url AS org_url FROM article a JOIN category b ON b.id = a.id_category JOIN organization_detail c ON c.id = a.id_organization WHERE a.status = 1 AND a.id_category IN () AND a.id NOT IN ('1072') AND a.publish_date <= NOW() UNION ALL SELECT a.title, a.thumb, a.url, a.hits, b.id AS category, b.name AS category_name, c.url AS organization_url, c.organization_name, c.url AS org_url FROM article a JOIN sub_category b ON b.id = a.id_category JOIN organization_detail c ON c.id = a.id_organization WHERE a.status = 1 AND a.id_category IN () AND a.id NOT IN ('1072') AND a.publish_date <= NOW() ORDER BY hits DESC LIMIT 3

Filename: models/M_news.php

Line Number: 246