if it is the avatar, i believe it is stored in ow_base_avatar. Without testing it i would say you might want to select id from ow_base_user and inner join ow_base_avatar on userId then you can weed them out as you go thru the while loop.. As i said i have not tested this as i am in the middle of a conversion myself.
The idea being if they are in the user table but not in the avatar table then they are prob spammers. Back both your tables or your whole db first before you remove anything.
SELECT * FROM `ow_base_user`
LEFT JOIN ow_base_avatar
ON ow_base_user.id = ow_base_avatar.userId
WHERE ow_base_avatar.userId IS NULL
DELETE FROM `ow_base_user`
LEFT JOIN ow_base_avatar
ON ow_base_user.id = ow_base_avatar.userId
WHERE ow_base_avatar.userId IS NULL
You get this error message:
This is in PHPmyadmin
i wonder also if inner would work as well
DELETE ow_base_user.* FROM ow_base_user
INNER JOIN ow_base_avatar ON (ow_base_user.id = ow_base_avatar.userId)
WHERE ow_base_avatar.userId IS NULL
remember this will not remove the from any tables, lets hope they are just in the user table, but they may also be in other tables like the user role table and others.
Dave,
This SQL will not delete all the content posted by those users as the data will be across several tables.