select p.*,pl.tenkhongdau,pl.ten from table_product p LEFT JOIN table_product_lang pl on p.id = pl.id_product where pl.lang = 'vi' and hienthi = '1' and p.id in () order by stt asc,ngaytao desc limit 0,161064: 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 ') order by stt asc,ngaytao desc limit 0,16' at line 1