修复查看数据作者中的sql错误
This commit is contained in:
parent
2198fb3831
commit
7cd937dab5
|
@ -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
|
||||
LEFT JOIN mdauthor a ON m.uuid=a.uuid
|
||||
LEFT JOIN users u ON u.id=a.userid
|
||||
WHERE status>=0 AND m.uuid=? AND a.status=1
|
||||
ORDER BY status DESC,a.id DESC";
|
||||
WHERE a.status>=0 AND m.uuid=? AND a.status=1
|
||||
ORDER BY a.status DESC,a.id DESC";
|
||||
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($uuid));
|
||||
|
|
Loading…
Reference in New Issue