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 '' at line 1syntax error: select id,ten as ten,tenkhongdau,mota as mota,thumb,ngaytao,luotxem from table_news where type='thu-vien' and hienthi=1 and id<>'57' order by stt,id desc limit 0,