diff --git a/Apollo/api/application/models/Student_model.php b/Apollo/api/application/models/Student_model.php index b3dfd5e8..639a8d87 100755 --- a/Apollo/api/application/models/Student_model.php +++ b/Apollo/api/application/models/Student_model.php @@ -1024,6 +1024,8 @@ class Student_model extends CI_Model { $this->db->group_by('t1.StaffID'); $this->db->where('t1.BranchCode', $loginBranchId); + $this->db->where('t1.IsActive','1'); + $this->db->where('t2.IsActive','1'); // $this->db->where('t1.ListCode', EMPLOYEE); $this->db->order_by('t1.CreatedOn', 'DESC'); $empDetails = $this->db->get();