处理review中的sql语句错误

This commit is contained in:
Li Jianxuan 2011-11-08 06:40:18 +00:00
parent 7fec8c5d1a
commit 57a6e4d654
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class ReviewController extends Zend_Controller_Action
$sql = "select r.id,r.uuid,r.userid,r.ts_created,u.realname,r.mdcomment,r.conclusion,ratt.reviewid from mdreview r $sql = "select r.id,r.uuid,r.userid,r.ts_created,u.realname,r.mdcomment,r.conclusion,ratt.reviewid from mdreview r
left join users u on u.id=r.userid left join users u on u.id=r.userid
right join mdreviewattach ratt on r.id=ratt.reviewid left join mdreviewattach ratt on r.id=ratt.reviewid
where r.uuid='$uuid' and r.status>-1 where r.uuid='$uuid' and r.status>-1
group by r.id,r.uuid,r.userid,r.ts_created,u.realname,r.mdcomment,r.conclusion,ratt.reviewid group by r.id,r.uuid,r.userid,r.ts_created,u.realname,r.mdcomment,r.conclusion,ratt.reviewid
"; ";