WIP 13793 sql syntax fix
WIP 13793 Revert accidental whitespace changes