It is also not handling square brackets around column names well. is being formatted as the extra spaces in the [ ] breaks the query as those...