From ba9054d8a328d7bc9df23c8c05743a63673c89c0 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 3 Jan 2016 08:12:00 +0100 Subject: [PATCH] Bugfix: The table name was wrong --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 2e310ea3e6..790894d3fb 100644 --- a/include/api.php +++ b/include/api.php @@ -2596,7 +2596,7 @@ $stringify_ids = (x($_REQUEST,'stringify_ids')?$_REQUEST['stringify_ids']:false); - $r = q("SELECT `unique_contact`.`id` FROM contact, `unique_contacts` WHERE contact.nurl = unique_contacts.url AND `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 $sql_extra", + $r = q("SELECT `unique_contacts`.`id` FROM `contact`, `unique_contacts` WHERE `contact`.`nurl` = `unique_contacts`.`url` AND `uid` = %d AND NOT `self` AND NOT `blocked` AND NOT `pending` $sql_extra", intval(api_user()) ); -- 2.39.5