Cambio funcion query.select to adapter.select