Fix a possible query error in filtering events
If all events are filtered by range logic, this invitee query may be invalid.
Auditors: lpriestley
Could probs just mpull() rather than building $phids. Definitely don't bother changing this since its an audit. :/