aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/relationships.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/relationships.php')
-rw-r--r--engine/lib/relationships.php2
1 files changed, 1 insertions, 1 deletions
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.* ";
}