diff --git a/application/models/education/Lehreinheit_model.php b/application/models/education/Lehreinheit_model.php index 7dba40153..22778cb6a 100644 --- a/application/models/education/Lehreinheit_model.php +++ b/application/models/education/Lehreinheit_model.php @@ -103,14 +103,13 @@ class Lehreinheit_model extends DB_Model */ public function getStudenten($lehreinheit_id) { - $query = 'SELECT uid, vorname, nachname ' + $query = 'SELECT uid, vorname, nachname, prestudent_id ' . 'FROM campus.vw_student_lehrveranstaltung ' . 'JOIN campus.vw_student ' . 'USING (uid) ' . 'WHERE lehreinheit_id = ?' . ' ORDER BY nachname'; - return $this->execQuery($query, array($lehreinheit_id)); } }