Possible Duplicate:
Remove duplicate rows in MySQL
I have the following query that shows duplicate rows:
SELECT ID, user_login, wp_users.user_email FROM wp_users
INNER JOIN (SELECT wp_users.user_email FROM wp_users
GROUP BY wp_users.user_email HAVING count(ID) > 1) dup ON wp_users.user_email = dup.user_email
I've only been able to find queries that remove both of them instead of just removing one of them (say the one with the highest ID).
Any ideas?