Update getSemesters.php

queries updated