DataObjects/Events.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 25 Nov 2011 05:22:24 +0000 (13:22 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 25 Nov 2011 05:22:24 +0000 (13:22 +0800)
DataObjects/Events.php

index 6aa7989..163fb0a 100644 (file)
@@ -96,9 +96,9 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
                     
                         
                        
-                        $this->selectAdd( " distinct(join_on_id_{$jtn}.{$q['_join_cols']}  ) as on_id_{$q['_join_cols']} ");
-                        $this->groupBy("on_id_{$q['_join_cols']} ");
-                        $this->whereAdd("{$q['_join_cols']} IS NOT NULL");
+                        $this->selectAdd( " distinct(join_on_id_{$jtn}.{$jc}  ) as on_id_{$jc]} ");
+                        $this->groupBy("on_id_{$jc} ");
+                        $this->whereAdd("{$jc} IS NOT NULL");
                     }
                     $this->selectAdd( "MAX(events.event_when) as event_when");
                     $this->orderBy('event_when DESC');