Mysql Error Output: 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 a.addl_category_id IN ()) AND (a.list_in='auction' OR u.shop_active='1') AN' at line 2

SQL Query: SELECT count(*) AS count_rows FROM newname_auctions a LEFT JOIN newname_users u ON u.user_id=a.owner_id WHERE a.active=1 AND a.approved=1 AND a.deleted=0
AND a.list_in!='store' AND a.catfeat='1' AND a.closed=0 AND (a.category_id IN () OR a.addl_category_id IN ()) AND (a.list_in='auction' OR u.shop_active='1') AND a.buyout_price>0