Hold Person, Mass

(Player's Handbook v.3.5, p. 241)

Enchantment (Compulsion) [Mind-Affecting]
Level: Sorcerer 7, Wizard 7, Beguiler 7, Sha'ir 7, Death Master 7, Mechanus 7,
Target: One or more humanoid creatures, no two of which can be more than 30 ft. apart

This spell functions like hold person, except as noted above.