Demophobia (also known as Enochlophobia or Ochlophobia) is defined as the fear of crowds, masses, or people.
Agoraphobia often involves a fear of crowded places, it is more precisely defined as a fear of places or situations from which escape might be difficult.