ERROR! 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 hienthi=1 order by sapxep desc,id desc' at line 1 (code:1064)
select id,tieude,xemtheo from h_loaisp where lsp_id=3 and lspp_id= and hienthi=1 order by sapxep desc,id desc