fixed issue with get_student query