I have a job search where people can have many different JOINS.
So a person could have professional qualifications, employment history, education history, references etc and each is held in its own table connected via left joins.
The search obviously returns multiple duplicated rows and right now I'm cleaning it up by putting it into a PHP array piece by piece.
Is there a better strategy for doing this in the SQL, like using SUB SELECTS?
The array method feels messy and I'm not sure where to start looking.
Thanks!