I think we never use the question like you do.
Are these questions your homework? If I were you, I would chose the second way:
"1.Who were the people who were here last night?
2.Who among you were the people who were enrolled in this subject?"
and there aren't differences between them.
Student or Learner