Changed the getID query