public function listInvitable() { global $db; $sql = "SELECT medlem_id FROM " . self::RELATION_TABLE . " WHERE grupp_id = " . $this->getId(); $ids = $db->valuesAsArray($sql); if (count($ids) > 0) { return Medlem::listMedlemmarNotIn($ids); } else { return null; } }