In SQL, what error message indicates a syntax issue involving the keyword 'with' when used in common table expressions or other specific clauses?
A. IncorrectSyntaxException
B. SQLSyntaxError
C. InvalidQueryException
D. Incorrect syntax near 'with'.