fixed orphaned articles/events query