BigW Consortium Gitlab
Apparently MySQL doesn't support this syntax: (...) UNION (...) instead it only supports: ... UNION ...