potresti postare tutto il codice che esegui per far partire la query?