From d899082513db09dd5a064f1d72b1a90cfce58a4f Mon Sep 17 00:00:00 2001 From: KH Lau Date: Tue, 24 Oct 2017 10:21:29 +0800 Subject: [PATCH] DataObjects/Events.php --- DataObjects/Events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataObjects/Events.php b/DataObjects/Events.php index 9c8f216d..af10242c 100644 --- a/DataObjects/Events.php +++ b/DataObjects/Events.php @@ -49,7 +49,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject $keys = $jt->keys(); - $this->_join = "LEFT JOIN {$jt->tableName()} AS join_person_id_id ON (join_person_id_id.{$keys[0]}=Events.person_id)"; + $this->_join = "LEFT JOIN {$jt->tableName()} AS join_person_id_id ON (join_person_id_id.{$keys[0]}={$tn}.person_id)"; //$this->_join = "LEFT JOIN {$jt->tableName()} AS join_person_id_id ON (join_person_id_id.{$keys[0]}=Events.person_id)"; $this->selectAdd(); $this->selectAs(); -- 2.39.2