title: Why does ActiveRecord allow me to sort by a nonexistent column name?
body: <p>Both of these lines of code return perfectly valid <code>ActiveRecord::Relation</code> collection of <code>Books</code>:</p>
  <pre><code>Book.order(:bazqux)
  ---&gt; SELECT  &quot;books&quot;.* FROM &quot;books&quot; ORDER BY &quot;bazqux&quot; ASC LIMIT ?
  Book.order(bazqux: :desc)
  ---&gt; SELECT  &quot;books&quot;.* FROM &quot;books&quot; ORDER BY &quot;bazqux&quot; DESC LIMIT ?
  </code></pre>
  <p>But when I try with SQL I get an error:</p>
  <pre><code>Book.order(&quot;bazqux DESC&quot;)
  ---&gt; ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: bazqux: SELECT  &quot;books&quot;.* FROM &quot;books&quot; ORDER BY bazqux DESC LIMIT ?)
  
  conn = ActiveRecord::Base.connection
  conn.execute(&quot;SELECT  books.* FROM books ORDER BY books.bazqux ASC LIMIT ?&quot;, 10)
  ---&gt; ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: books.bazqux: SELECT  books.* FROM books ORDER BY books.bazqux ASC LIMIT ?)
  </code></pre>
  <p>Why is this?</p>