From d76fb6d0b9936d56250b60102a5fb839b057e772 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 3 Jun 2018 09:19:27 +0000 Subject: [PATCH] Fixed SQL error --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 54176da798..2892dfe4ee 100644 --- a/include/api.php +++ b/include/api.php @@ -2066,7 +2066,7 @@ function api_conversation_show($type) $sql_extra = ' AND `item`.`id` <= ' . intval($max_id); } - $r = q("SELECT `* FROM `item` + $r = q("SELECT `item`.`*` FROM `item` STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id` AND (NOT `contact`.`blocked` OR `contact`.`pending`) WHERE `item`.`parent` = %d AND `item`.`visible`