sql error : ERROR: invalid input syntax for type integer: "%7Bbid%7D" CONTEXT: unnamed portal parameter $1 = '...'