select count(*) as MyCount from (select * from sl_news where cid1='3' order by sort desc ) MyTempTable