syntax error: SELECT count(distinct n.id ) AS numrows FROM table_news as n inner join table_news_add_danhmuc as ndm on n.id = ndm.id_news where n.type='tin-tuc' and ndm.id_danhmuc= and n.hienthi=1 order by n.stt,n.id desc