diff --git a/application/models/tables/Requests.php b/application/models/tables/Requests.php index 8a113f87ce32a397b673103ad8afdd8a9f3c5394..d7cb07a0a36977c6d4fde61df1ba6c031f5bdddd 100644 --- a/application/models/tables/Requests.php +++ b/application/models/tables/Requests.php @@ -42,6 +42,7 @@ class Requests extends Nmc_Db_Table { $cc = CourseCodes::getInstance()->getTableName(); $select = $db->select(); + $select->distinct(); $select->from($rq, '*'); $select->join($cg, $rq . '.' . $this->getPrimaryKeyName() . ' = ' . $cg . '.request'); $select->join($cx, $cg . '.' . CourseGenerations::getInstance()->getPrimaryKeyName() . ' = ' . $cx . '.generation');