Another GROUP BY fix for MySQL

https://github.com/friendica/friendica/issues/3322
This commit is contained in:
Alexandre Alapetite 2017-04-12 01:06:08 +02:00
parent dbbe6efd27
commit 15a44d945b
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ class ostatus {
} else { } else {
$conversations = q("SELECT `oid`, `url`, `uid` FROM `term` $conversations = q("SELECT `oid`, `url`, `uid` FROM `term`
WHERE `type` = 7 AND `term` > '%s' WHERE `type` = 7 AND `term` > '%s'
GROUP BY `url`, `uid` ORDER BY `term` DESC", dbesc($start)); GROUP BY `url`, `uid`, `oid`, `term` ORDER BY `term` DESC", dbesc($start));
} }
foreach ($conversations AS $conversation) { foreach ($conversations AS $conversation) {