How to fix ERROR: could not determine data type of parameter $1 in PostgreSQL | DevErrors