diff --git a/app/legacy_lib/query_supporters.rb b/app/legacy_lib/query_supporters.rb index 096d76a9f..d38156c95 100644 --- a/app/legacy_lib/query_supporters.rb +++ b/app/legacy_lib/query_supporters.rb @@ -211,6 +211,7 @@ def self.full_filter_expr(np_id, query) expr = Qx.select('supporters.id') .with(:nonprofits, Qx.select("*").from(:nonprofits).where("id = $id", id: np_id.to_i)) + .with(:tag_masters, Qx.select("*").from(:tag_masters).where("nonprofit_id = $id AND NOT deleted", id: np_id.to_i)) .from(:supporters) .join('nonprofits', 'nonprofits.id=supporters.nonprofit_id') .where(