Syntax error in union query. (Error 3319)

There is a syntax error in an SQL string of the union query.

Possible causes:

  • A reserved word or argument name is misspelled.
  • A reserved word or argument is missing.
  • Punctuation is incorrect.