Select username, emailaddress from i_users where userId in (Select userId from (Select userId, count(userId) as mcount from i_user_login_logs where username <> 'Administrator' group by userId)) group by userID having mcount = MAX(mcount))