ORA-56900
The bind variable is not supported inside a pivot or unpivot operation.
Cause
An attempt was made to use bind variables inside a pivot or unpivot operation.
Action
Replace the bind variable with a constant and retry the query.