Oracle Solution for Error ora-32632

Solution for Oracle Error ORA-32632

ORA-32632: incorrect subquery in MODEL FOR cell index

What triggered the Error:

An illegal subquery was specified in MODEL FOR cell index. A subquery used in a MODEL FOR cell index can not have subqueries, correlation, binds and references to WITH tables.

What should we do to fix it:

Check the SQL statement and rewrite if necessary.