Browse Source

Fix profile wrong DISTINCT + ORDER BY

Fix: ERROR 3065 (HY000) Expression #1 of ORDER BY clause is not in
SELECT list, references column 'friendica.item.created' which is not in
SELECT list; this is incompatible with DISTINCT
pull/3323/head
Alexandre Alapetite 4 years ago
parent
commit
9fb4ba2b73
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mod/profile.php

+ 1
- 1
mod/profile.php View File

@ -210,7 +210,7 @@ function profile_content(App $a, $update = 0) {
if ($update) {
$r = q("SELECT distinct(parent) AS `item_id`, `item`.`network` AS `item_network`
$r = q("SELECT distinct(parent) AS `item_id`, `item`.`network` AS `item_network`, `item`.`created`
FROM `item` INNER JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND


Loading…
Cancel
Save