select distinct(c.id), c.category from tblnews2category 2n, tblnews_category c where 2n.iidcategory=c.id and 2n.iidnews= and c.blive=1 order by category
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 c.blive=1 order by category' at line 1