title: Mysql2::Error: You have an error in your SQL syntax
body: <p>I just used <a href="https://stackoverflow.com/questions/1670154/convert-a-ruby-on-rails-app-from-sqlite-to-mysql">this</a> to switch my rails app db from sqlite3 to mysql2 and that seemed to work out properly.</p>
  
  <p>But when I start up my app I'm now getting this:</p>
  
  <pre><code>A ActionView::Template::Error occurred in pages#dashboard:
  
  Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '== 1) LIMIT 20 OFFSET 0' at line 1: SELECT `tickets`.* FROM `tickets` WHERE (archived == 1) LIMIT 20 OFFSET 0
  activerecord (3.0.3) lib/active_record/connection_adapters/abstract_adapter.rb:202:in `log'
  </code></pre>
  
  <p>Not sure where to look to get this working properly. Any help would be appreciated. Thanks!</p>