How to fix ERROR: Parameter $N does not exist in PostgreSQL | DevErrors