Too many sub-queries at level number(max: number)

The SQL statement contains too many sub-queries.

Resolution:

Correct the statement.