I think we can use :host_id => @hosts since rails 3.2 uses inner select