diff --git a/Apollo/api/application/models/Student_model.php b/Apollo/api/application/models/Student_model.php index cb79bda7..de5b6bfd 100755 --- a/Apollo/api/application/models/Student_model.php +++ b/Apollo/api/application/models/Student_model.php @@ -354,6 +354,7 @@ class Student_model extends CI_Model { $this->db->join('' . STUDENTS_FEES_PAID . ' as t6', 't6.FeesId = t5.FeesID', 'LEFT'); $this->db->where('t1.BranchID', $req['localBranchID']); $this->db->where('t1.StudentID', $studentId); + $this->db->where('t1.IsActive', '1'); $this->db->group_by('t1.CourseID'); $courseDetails = $this->db->get(); $checkArr = $courseDetails->result();