Change student detail query