See this query which works as is, but if you edit it to delete either embedded new line (or both) the query fails with:
Incorrect syntax near '0'.
Data Explorer currently does some pretty light (but terribly messy) mangling of your query on the backend for the purposes of extracting query parameters and removing purely cosmetic newlines.
Ignoring everything else that's wrong with the responsible code (which I've made another note to revisit in the near future), part of the routine is extracting quoted content and then re-substituting it back in....mistakenly in forward order, which makes it susceptible to token misidentification (i.e.
Iterating backwards would have been the smart thing to do there, so now that's what happens.