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 ') AND image!='' and active='1' AND isPhotos='0' AND isNews='0'' at line 1

QUERY = SELECT DISTINCT man, CubeCart_inventory.cat_id, CubeCart_cats_idx.productId, productCode, quantity, description, image, price, dia, name, available, popularity, sale_price, wholesale_price, stock_level, useStockLevel, tampelaki, timestamp_created FROM CubeCart_cats_idx INNER JOIN CubeCart_inventory ON CubeCart_cats_idx.productId = CubeCart_inventory.productId WHERE CubeCart_cats_idx.cat_id IN () AND image!='' and active='1' AND isPhotos='0' AND isNews='0'