title: Searching for value combination in two columns of a database
body: <p>I'm attempting to write a script to query a database for a combination of values using ruby on rails.  My aim is to find out the following: <em>Where <code>column1==x</code>, does <code>column2==y</code>?</em></p>
  
  <p>I had thought the following would do the trick but it seems not to.</p>
  
  <pre><code>MyValues.where(column1: x, column2: y)
  </code></pre>
  
  <p>Rather, it kicks out something like the following: </p>
  
  <pre><code>IdKey::ActiveRecord_Relation:0x00000004ae4d28
  </code></pre>
  
  <p>Any ideas where I might be going wrong and how I might go right?</p>
  
  <p>As always, the help is much appreciated.</p>