La riga dell'errore?
Se è la query con select, fattela stampare prima di eseguirla.

Roby