$cgm = DB_DataObject::Factory('core_group_member')->tableName();
$cpObj->active = 1; // set the where condition with active = 1
- $cgm->joinAdd($cpObj, array('joinType' => 'LEFT', 'useWhereAsOn' => true));
+ $cgm->joinAdd($cpObj, array('joinType' => 'LEFT', 'useWhereAsOn' => true), "user_id");
$core_group->joinAdd($cpObj, array('joinType' => 'LEFT', 'useWhereAsOn' => true));
$core_group->find();
DB_DataObject::debugLevel();