1
0
Fork 0

Issue 9925: Make query compatibly to MySQL 8

This commit is contained in:
Michael 2021-03-07 07:54:02 +00:00
parent d43c5b1dbc
commit 98ffcdd085

View file

@ -81,11 +81,11 @@ class Profile extends BaseModule
}
$items_stmt = DBA::p(
"SELECT DISTINCT(`parent-uri-id`) AS `uri-id`, MAX(`created`), MAX(`received`) FROM `post-user-view`
"SELECT `parent-uri-id` AS `uri-id`, MAX(`created`), MAX(`received`) FROM `post-user-view`
WHERE `uid` = ? AND NOT `contact-blocked` AND NOT `contact-pending`
AND `visible` AND (NOT `deleted` OR `gravity` = ?)
AND `wall` $sql_extra4 $sql_extra
ORDER BY `received` DESC",
GROUP BY `parent-uri-id` ORDER BY `received` DESC",
$a->profile['uid'],
GRAVITY_ACTIVITY
);