Fix CROSS JOINs

While seldomly used, CROSS joins should not generate invalid SQL.

Fixes #4050