Create a method of filtering one field by its relation to another field