Add select(:id) to active record 'in' query to avoid MySQL errors in Rails 4.0.2