ThinkPhp の複数テーブルのクエリの問題、助けてください
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> public function graduate(){ $this->checkLogin();//判断登录 $Graduate=M('Graduate'); $category=$_GET['category']; $map['FLG']='0'; $map['LAN']='01'; import("@.ORG.Page"); $count = $Graduate->join('LEFT OUTER JOIN PERSON ON(GRADUATE.PERSONID=PERSON.PERSONID andPERSON.FLG='.$FLG.')')->where($map)->count(); $p = new Page ($count, 10 ); $list=$Graduate->limit($p->firstRow.','.$p->listRows)->join('LEFT OUTER JOIN PERSON ON GRADUATE.PERSONID=PERSON.PERSONID and PERSON.FLG=0')->where($map)->order('GRADUATE.GRADUATEID DESC')->findAll(); $page = $p->show (); $pagenumber=$p->nowPage; $this->assign ("pagenumber", $pagenumber-1 ); $this->assign ("page", $page ); $this->assign ("list", $list ); $this->display(); }