{fzw:sql="select *,(select count(id) from sl_bbsshow as bbs where bbs.quanzibianhao=bs.id and bbs.laiyuanbianhao=0) as tiezishu,(select count(id) from sl_bbsshow as bbs where bbs.quanzibianhao=bs.id and laiyuanbianhao<>0) as huitieshu from sl_bbs as bs where bs.id=4" id="p1"}
{fzw:sql="select *,(select count(id) from sl_bbsshow as bbs where bbs.quanzibianhao=4 and bbs.laiyuanbianhao<>0 and bbs.yonghuming=u.yonghuming) as huitieshu from sl_user as u where u.yonghuming in (select yonghuming from sl_bbsshow as bbs where bbs.quanzibianhao=4) order by huitieshu desc" id="p1"}