I have a query with ID, lastname, firstname, partnerlastname, and orders.
The user can search on any field. The problem is that say for instance the user searches on partnerlastname = Test it returns 3 records for lastname = Doe and firstname = John because John Doe has 3 order records. The...