Seaquel
SQL Server error code

SQL Server error 146

SQL Server raises error 146 at severity 15, which marks a problem with the query or data that you can correct.

Could not allocate ancillary table for a subquery. Maximum number of tables in a query (%d) exceeded.
Msg146
Severity15
Group0–999

Source: Database Engine events and errors