diff --git a/core/groups/groups.php b/core/groups/groups.php index 1198ea21f5..973e70e9eb 100644 --- a/core/groups/groups.php +++ b/core/groups/groups.php @@ -81,7 +81,7 @@ //get group counts - $sql = "select group_uuid, count(user_uuid) as group_count from v_group_users "; + $sql = "select group_uuid, count(user_uuid) as group_count from v_user_groups "; if (!permission_exists('user_all')) { $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; }