DataObjects/ProjectDirectory.php
[Pman.Core] / DataObjects / ProjectDirectory.php
index 471269a..d2c5733 100644 (file)
@@ -83,7 +83,7 @@ class Pman_Core_DataObjects_ProjectDirectory extends DB_DataObject
         }
         $c->selectAdd();
         // people may have multiple roles for a project..
-        $c->selectAdd('distinct(project_id) as project_id');
+        $c->selectAdd("distinct({this->tableName()}.project_id) as project_id");
         return $c->fetchAll('project_id');
     }
         /**
@@ -94,8 +94,8 @@ class Pman_Core_DataObjects_ProjectDirectory extends DB_DataObject
     function people($pr)
     {
         $c = clone ($this);
-        echo '<PRE>';print_R($this);exit;
-        $c->autoJoin();
+        //echo '<PRE>';print_R($this);exit;
+        
         if (is_array($pr)) {
             $c->whereAddIn('project_id', $pr, 'int');
         } else {