org.postgresql.util.PSQLException: ERROR: syntax error at or near “$8”
Para poder procurar a causa…
Esqueçam era só syntax mesmo…