Overlap and time are your friends. In most cases, just waiting between shots for people to move is enough. The most difficult moving subject are those that are slow moving in place.
If you are shooting wide (e.g. 8mm), that's about it: the more overlap, the easier. When post processing, display the warped overlapping images as layers in an image editor to mask out the unwanted ghosts, then export the layers to your blending tool.
If you're shooting tele and no single shot can frame the moving subject, you'll have to wait for it to move away or get back to it later and retouch manually.
The most difficult situation of this kind I found were moored boats for a 200mm shot. I ended up taking a reference shot at 8mm, blowing it up, and move the boat parts manually in place.