Fix query with has_and_belongs
Fix query with has_and_belongs
Fix query with has_and_belongs