The advice I've always been given is that the name on the ticket must match the name in the passport, exactly.
If you want to make sure they don't get separated on the aircraft, make sure that the airlines know to link the PNRs and comment each of them with the fact that the person is flying with someone else.