Non è la solita domanda su come si fa il bridge

Quello l'ho fatto e funziona discretamente bene.
Ha solo UN difetto.
Se registro un utente su J!, il portale gli invia la mail dove deve aprire il link per attivare l'account. L'utente clikka sopra e ...
Fatal error: SQL ERROR [ mysql4 ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [1064]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists. in /web/htdocs/www.astf.it/home/distribution/includes/db/dbal.php on line 602
Resta comunque il fatto che, nonostante l'errore l'utente viene abilitato, sia sul portale che sul forum..
Qualcuno lo conosce?