title: TypeError: wrong argument type String (expected Array)
body: <p>I am trying to execute following line in rails console (bundle exec rails c):</p>
  
  <pre><code>query = select("product.id").where("admin_id = ? and account_id = ?", 3, 4)
  </code></pre>
  
  <p>But I get following error:</p>
  
  <pre><code>TypeError: wrong argument type String (expected Array)
  from (irb):83:in `select'
  </code></pre>
  
  <p>This code seems to be working fine in the application as such. Any clue on why it is failing in irb?</p>
  
  <p><br/>
  ruby version -> 1.9.3p545<br/>
  Rails version -> 3.2.8</p>
  
  <p><br/></p>
  
  <p>This code is originally defined in a ActiveRecord class (Product) in a scope.
  How to execute it through rails console ?</p>