Changed the selec query