$query = Db::field('a.name as sName,b.name as qName')->table('sa_ma_staff') ->alias('a') ->join('sa_ma_right c','c.staff_id = a.id') ->join('sa_ma_quarter b','c.quat_id = b.id') ->where('c.is_eva = 1');
$staffEva = $query->limit($start,$length)->select();
想着用这种方式来秀操作。结果报错了。
记录一下,以后不要这么玩。