prepare('SELECT s.Seminar_id FROM seminare s LEFT JOIN object_contentmodules oc ON (s.Seminar_id = oc.object_id) WHERE oc.module_id = ? AND oc.system_type = ?'); $stmt->execute([$module_id, $system_type]); return $stmt->fetchAll(PDO::FETCH_COLUMN); } public static function find_institutes_using_contentmodule($system_type, $module_id) { $db = DBManager::get(); $stmt = $db->prepare('SELECT i.Institut_id FROM Institute i LEFT JOIN object_contentmodules oc ON (i.Institut_id = oc.object_id) WHERE oc.module_id = ? AND oc.system_type = ?'); $stmt->execute([$module_id, $system_type]); return $stmt->fetchAll(PDO::FETCH_COLUMN); } }