select count(*) as num from news a,news_data b where a.cat_id= and a.id=b.id order by a.listorder,a.id desc³ö´í