-1107: Too complicated SQL statement (Too many internal commands)

Explanation:

The SQL statement is so complicated that more internal statements must be generated for it than can be administered for an SQL statement.

User Action:

Simplify the SQL statement or split it into several SQL statements.