Use INNER for group_member join
This commit is contained in:
parent
c8c7ff2a2e
commit
868a84c5cc
1 changed files with 1 additions and 1 deletions
|
@ -606,7 +606,7 @@ class Contact extends BaseObject
|
||||||
AND `id` NOT IN (
|
AND `id` NOT IN (
|
||||||
SELECT DISTINCT(`contact-id`)
|
SELECT DISTINCT(`contact-id`)
|
||||||
FROM `group_member`
|
FROM `group_member`
|
||||||
JOIN `group` ON `group`.`id` = `group_member`.`gid`
|
INNER JOIN `group` ON `group`.`id` = `group_member`.`gid`
|
||||||
WHERE `group`.`uid` = %d
|
WHERE `group`.`uid` = %d
|
||||||
)
|
)
|
||||||
LIMIT %d, %d", intval($uid), intval($uid), intval($start), intval($count)
|
LIMIT %d, %d", intval($uid), intval($uid), intval($start), intval($count)
|
||||||
|
|
Loading…
Reference in a new issue