Refactored Special:ActiveUsers queries to remove filesort/temp table.

Change-Id: I4f32bad5084aadd289ccd2eefd93fc3d0d585b11
Merge "Refactored Special:ActiveUsers queries to remove filesort/temp table."