MySQL Error Occured
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 ') ORDER BY CubeCart_inventory.list_no DESC, productId DESC' at line 1

QUERY = SELECT DISTINCT man, CubeCart_inventory.cat_id, CubeCart_cats_idx.productId, productCode, image, image1, price, sale_price, ekptwtiki_price, productCode, timestamp_ekptwsi_start, timestamp_ekptwsi_end, blackfriday, dia, name, available, gleather, man, greekproduct, rfid, stock_level, useStockLevel, final_price, optsText FROM CubeCart_cats_idx INNER JOIN CubeCart_inventory ON CubeCart_cats_idx.productId = CubeCart_inventory.productId WHERE CubeCart_cats_idx.cat_id IN (18,150,148,34,39,40,38,19,242,43,180,41,446,448,455,449,456,450,451,452,453,454,465,466) AND vrs='1' AND price>0 AND active='1' AND isPhotos='0' AND isNews='0' AND man IN () ORDER BY CubeCart_inventory.list_no DESC, productId DESC