Seaquel
SQL Server error code

SQL Server error 319

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

Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
Msg319
Severity16
Group0–999

Source: Database Engine events and errors