diff --git a/application/models/Uitslag_model.php b/application/models/Uitslag_model.php index 50280b1..9594c14 100644 --- a/application/models/Uitslag_model.php +++ b/application/models/Uitslag_model.php @@ -42,6 +42,7 @@ class Uitslag_model extends CI_Model $this->db->from('subgroep'); $this->db->where('subgroep.regioid', $this->session->regio); $this->db->where('subgroep.jaar', date('Y')); + $this->db->where('subgroep.id', $subgroepid); $this->db->join('groep', 'subgroep.groepid=groep.id', 'left'); $query = $this->db->get();