Fix for session query returning all users.