yet another postgres/"group by" issue
This commit is contained in:
parent
be4c9a9598
commit
6ad4ed87a3
@ -175,7 +175,7 @@ class Search extends \Zotlabs\Web\Controller {
|
|||||||
OR ( item.uid = %d )) OR item.owner_xchan = '%s' )
|
OR ( item.uid = %d )) OR item.owner_xchan = '%s' )
|
||||||
$item_normal
|
$item_normal
|
||||||
$sql_extra
|
$sql_extra
|
||||||
group by mid order by created desc $pager_sql ",
|
group by mid, created order by created desc $pager_sql ",
|
||||||
intval(local_channel()),
|
intval(local_channel()),
|
||||||
dbesc($sys['xchan_hash'])
|
dbesc($sys['xchan_hash'])
|
||||||
);
|
);
|
||||||
@ -188,7 +188,7 @@ class Search extends \Zotlabs\Web\Controller {
|
|||||||
$pub_sql ) OR owner_xchan = '%s')
|
$pub_sql ) OR owner_xchan = '%s')
|
||||||
$item_normal
|
$item_normal
|
||||||
$sql_extra
|
$sql_extra
|
||||||
group by mid order by created desc $pager_sql",
|
group by mid, created order by created desc $pager_sql",
|
||||||
dbesc($sys['xchan_hash'])
|
dbesc($sys['xchan_hash'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user