Fixing the getRooms query.