a me funziona, hai provato a stampare a video la stringa sql?