Fix SqlServer Missing whitespace before ORDER BY

Missing whitespace causes SqlServer exception... There should probably be a test for a complete sql expression?