findBy(array('uid' => $uid)); if ($relations) foreach ($relations as $tmprow) { $groupids[] = $tmprow['groupid']; } return array_unique($groupids); } }