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 ', replace(set_level, '|', ','))>0 and hienthi=1 order by stt, id desc' at line 1syntax error: select ten_vi as ten, tenkhongdau, id from table_product_list where find_in_set(, replace(set_level, '|', ','))>0 and hienthi=1 order by stt, id desc