The query for Affiliations based on personfirst, personlast, and orgcode doesn't seem to be working. When I enter those parameters, I get everything, rather than the Affiliation with the specified filtering.
I think the problem is that the code is trying to filter, but since the values are not in the base query, it's not able to query correctly.