You want to read about depth of field. Try
this website, which includes a handy calculator for how wide an area you can get in focus for a given camera, lens, aperture and distance from subject group.
You definitely won't go far setting the aperture to the same number as the number of people. Anyway, where do you get 5.6 people?!
Wulf