Fix pagination on student query.php