Fixed SQL error

pull/5166/head
Michael 2018-06-03 09:19:27 +00:00
parent f081f15096
commit d76fb6d0b9
1 changed files with 1 additions and 1 deletions

View File

@ -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`