Do not mix ANSI and non-ANSI JOIN syntax in the same query | CAST Appmarq