How to fix There is no parameter $N in PostgreSQL | DevErrors