aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/annotations.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php
index 94e5381ce..29100d414 100644
--- a/engine/lib/annotations.php
+++ b/engine/lib/annotations.php
@@ -647,8 +647,8 @@
$query .= " $w and ";
$query .= get_access_sql_suffix("a"); // now add access
$query .= ' and ' . get_access_sql_suffix("e"); // now add access
- $query .= ' order by sum ' . $orderdir;
$query .= ' group by e.guid';
+ $query .= ' order by sum ' . $orderdir;
return get_data($query, "entity_row_to_elggstar");
}