]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
Fix profile wrong DISTINCT + ORDER BY
[friendica.git] / mod / profile.php
index fbce509d29634e4f6a2402b1636c8360190366fc..a83cb076f26b883a04504be31e9a5974e95ed64d 100644 (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