From bd152e5fd0fd8972dcf8bd273d119f86fdb2295b Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 30 Apr 2008 16:18:17 +0000 Subject: Fix for previous fix for previous fix git-svn-id: https://code.elgg.org/elgg/trunk@588 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/relationships.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php index 4b7e61360..486005c3f 100644 --- a/engine/lib/relationships.php +++ b/engine/lib/relationships.php @@ -408,7 +408,7 @@ $joinon = "e.guid = r.guid_two"; if ($count) { - $query = "select count(distinct e.id) as total "; + $query = "select count(distinct e.guid) as total "; } else { $query = "select distinct e.* "; } -- cgit v1.2.3