$sql = "select t1.*,t2.cat_name as catname from goods as t1,category as t2 where t1.cat_id = t2.cat_name;";
#$result = $model -> query($sql);
$count = $model -> count();
鍊錶查詢之後的集無法用count統計數量求解。 。