显示全部作者
This commit is contained in:
parent
1576d6f258
commit
e00969668a
|
@ -55,7 +55,7 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
|
||||
function westplanAction()
|
||||
{
|
||||
$sql="select distinct a.author,c.title,c.publisher,c.ts_created,c.ts_issued,c.item_id,c.url from knl_article c left join knl_author a on c.item_id=a.item_id where c.url <>'' and a.place=1 order by ts_created desc";
|
||||
$sql="select distinct array_to_string(array(select author from knl_author t where t.item_id=c.item_id order by place asc),'; ') as author,c.title,c.publisher,c.ts_created,c.ts_issued,c.item_id,c.url from knl_article c where c.url <>'' order by ts_created desc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
|
|
Loading…
Reference in New Issue