From: Michael Date: Sat, 12 Nov 2022 13:13:58 +0000 (+0000) Subject: Issue 12161: Fix Unknown column 'post-view.id' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=50eef93272478a6be69ea8c5f3dc2d12f1204f3c;p=friendica-addons.git Issue 12161: Fix Unknown column 'post-view.id' --- diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 7c71919f..903450c2 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1226,7 +1226,7 @@ function pumpio_fetchinbox(App $a, int $uid) $self = User::getOwnerDataById($uid); $lastitems = DBA::p("SELECT `uri` FROM `post-thread-user` - INNER JOIN `post-view` ON `post-view`.`id` = `post-thread-user`.`id` + INNER JOIN `post-view` ON `post-view`.`uri-id` = `post-thread-user`.`uri-id` WHERE `post-thread-user`.`network` = ? AND `post-thread-user`.`uid` = ? AND `post-view`.`extid` != '' ORDER BY `post-thread-user`.`commented` DESC LIMIT 10", Protocol::PUMPIO, $uid);