How to fix Invalid value for parameter in PostgreSQL | DevErrors