BsCapters::model()->findAllBySql("select count(*) as bookids from bs_capters where bookid = ".$bookid." and urlid = ".$urlid)
count(*) as xxx
这个xxx必须是表里面存在的字段否则无法取到值