Fixed wrong query for viewer's on demand events.