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 deleted_at IS NULL AND status IN (1,2) ORDER BY seq ASC' at line 1 :: QUERY => SELECT * FROM `mt_products_simple` WHERE product_id = AND deleted_at IS NULL AND status IN (1,2) ORDER BY seq ASC