修复查看数据作者中的sql错误

This commit is contained in:
wlx 2016-03-11 15:51:22 +08:00
parent 2198fb3831
commit 7cd937dab5
1 changed files with 2 additions and 2 deletions

View File

@ -1587,8 +1587,8 @@ class AuthorController extends Zend_Controller_Action
$sql = "SELECT u.realname,u.unit,u.email,m.title,m.description FROM normalmetadata m $sql = "SELECT u.realname,u.unit,u.email,m.title,m.description FROM normalmetadata m
LEFT JOIN mdauthor a ON m.uuid=a.uuid LEFT JOIN mdauthor a ON m.uuid=a.uuid
LEFT JOIN users u ON u.id=a.userid LEFT JOIN users u ON u.id=a.userid
WHERE status>=0 AND m.uuid=? AND a.status=1 WHERE a.status>=0 AND m.uuid=? AND a.status=1
ORDER BY status DESC,a.id DESC"; ORDER BY a.status DESC,a.id DESC";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(array($uuid)); $sth->execute(array($uuid));