(Regression) LPS-50876 Add missing whitespace at SQL generation