DataObjects/Events.php
authorAlan Knowles <alan@roojs.com>
Mon, 3 Sep 2012 08:29:56 +0000 (16:29 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 3 Sep 2012 08:29:56 +0000 (16:29 +0800)
DataObjects/Events.php

index 63b613c..b7516eb 100644 (file)
@@ -81,7 +81,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
             $this->selectAdd("count($tn.id) as qty");
             $this->selectAdd("count( distinct $tn.on_id) as uqty");
             $this->whereAdd('LENGTH(join_person_id_id.name) > 0 ');
-            $this->groupBy('person_id,join_person_id_id.name');
+            $this->groupBy('person_id,join_person_id_id.name,join_person_id_id.email');
         }
          if (isset($q['query']['table_sum'])) {
             //DB_DataObject::debugLevel(1);