Looks like you’re trying to use a PostgreSQL function like it’s a prepared statement with array parameters, but the function call needs to match the parameters.