Query Error SELECT b.id,b.name, b.name_2,b.link_catalog,b.part_code,b.tags,b.alias,b.price,b.price_old,b.discount,b.image,b.category_alias,b.code,a.record_id,b.created_time,b.summary,b.origin_id, b.published_origin, b.types,b.tablename, b.origin_code, list_trademark, a.id_same_model, a.weight, a.cycle,a.unit_id,a.wholesale_prices ,a.vat_lieu_day,a.dai_do_m,a.day_rong_mm,a.cap_chinh_xac FROM fs_products_thuoc_cuon AS a, fs_products as b WHERE 1=1 AND a.record_id=b.id and b.published = 1 AND b.`type` = 0 AND ( a.cap_chinh_xac = 'EC class I' OR a.cap_chinh_xac = 'EC class II' ) AND ( a.dai_do_m > 50 ) AND ( a.day_rong_mm = '13' ) AND b.category_id_wrapper like "%,250,%" AND b.list_trademark IN (836,,562) ORDER BY code ASC
Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '562) ORDER BY code ASC' at line 2 )