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 type='news' and hienthi=1 order by luotxem desc limit 5' at line 1
Syntax error: select id, ten_vi as ten, tenkhongdau, photo from table_post where id_list= and type='news' and hienthi=1 order by luotxem desc limit 5