The 50 waves does not have to be consecutive. it's ok to disconnect/leave & compensate the missing waves on another match as long as Mac, Lahni & Keegan are participants. Any class works.
If there was a full squad of 5 players, the other 2 players beside Mac, Lahni & Keegan will also grab the achievement once the 50 waves are done.