title: Raw sql where value is array. Ruby
body: <p>Trying to do the following</p>
  
  <pre>ElectricityProfile.find_by_sql ["select * from electricity_profiles where owner_id IN ?", array]</pre>
  
  <p>However seems that sql doesn't accept arrays.</p>
  
  <p>Is there any other way to check column against array?</p>
  
  <p>Using:
  Rails 3.2.x
  Ruby 193
  MySQL</p>