title: Unable to parse query string for Function QUERY parameter
body: <p>Trying to run this query:</p>
  <pre><code>=query(IMPORTRANGE(&quot;XXXXXXX&quot;,&quot;'XX'!A:H&quot;), &quot;where Col3 = '666' and select Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8 and order by Col5 desc&quot;,1)
  </code></pre>
  <p>And keep on getting weird errors such as this one</p>
  <blockquote>
  <p>Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered &quot; &quot;select&quot; &quot;select &quot;&quot; at line 1, column 24. Was expecting one of: &quot;true&quot; ... &quot;false&quot; ... &quot;not&quot; ... &quot;date&quot; ... &quot;timeofday&quot; ... &quot;datetime&quot; ... &quot;timestamp&quot; ... &quot;min&quot; ... &quot;max&quot; ... &quot;avg&quot; ... &quot;count&quot; ... &quot;sum&quot; ... &quot;no_values&quot; ... &quot;no_format&quot; ... &quot;is&quot; ... &quot;null&quot; ... &quot;year&quot; ... &quot;month&quot; ... &quot;day&quot; ... &quot;hour&quot; ... &quot;minute&quot; ... &quot;second&quot; ... &quot;millisecond&quot; ... &quot;with&quot; ... &quot;contains&quot; ... &quot;starts&quot; ... &quot;ends&quot; ... &quot;matches&quot; ... &quot;like&quot; ... &quot;now&quot; ... &quot;dateDiff&quot; ... &quot;quarter&quot; ... &quot;lower&quot; ... &quot;upper&quot; ... &quot;dayOfWeek&quot; ... &quot;toDate&quot; ...  ... &lt;INTEGER_LITERAL&gt; ... &lt;DECIMAL_LITERAL&gt; ... &lt;STRING_LITERAL&gt; ... &lt;QUOTED_ID&gt; ... &quot;(&quot; ... &quot;-&quot; ...</p>
  </blockquote>
  <p>Not sure why the error is referring to column 24 where I clearly didn't ask for it :)</p>
  <p>Any thoughts?</p>