这个是官方自带SQL标签“文章通用分页”的语句: select id,title,keywords,hits,intro,adddate,author,(select count(id) from ks_comment where channelid=1 and infoid=ks_article.id) as commenttotal from KS_Article where tid in({$CurrClassChildID}) and verific=1 order by id desc 加红这部分就是