.map(&:id)Use the ActiveRecord where method. You can just pass in an array of values for your SQL IN clause.
PolicyVehicles.where(:column_a => value_a, :column_b => value_b)
So
PolicyVehicles.where(:client_id => Client.where(:column => :value).map(&:id) )