Seaquel
SQL Server error code

SQL Server error 251

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

Could not allocate ancillary table for query optimization. Maximum number of tables in a query (%d) exceeded.
Msg251
Severity16
Group0–999

Source: Database Engine events and errors