I have a problem with a SQL query, and more specifically with combining several SELECT queries into one query with UNION ALL functions. You get the error when trying to exec