make it compatible with only 5.7+
[civicrm-core.git] / CRM / Contact / Form / Search / Custom / TagContributions.php
index 3806b155a6ea1befd2f7b5981709bc7df029cc41..d7d153f01d05ad3b6c253386855fcb23634391eb 100644 (file)
@@ -133,7 +133,7 @@ FROM   $from
 WHERE  $where
 ";
 
-    $sql .= " GROUP BY contact_a.id, contact_a.sort_name, contact_a.first_name, contact_a.last_name";
+    $sql .= " GROUP BY contact_a.id";
     // Define ORDER BY for query in $sort, with default value
     if (!empty($sort)) {
       if (is_string($sort)) {