You basically have it, except data format is incorrect, try
Code:
DELETE FROM user_account WHERE last_logout < 20/08/2005
As for the entries with null, thats what i used to do, but the script was a little tricky you dont use < / = / > / blah blah you use IS
Code:
DELETE FROM user_account WHERE last_ip IS NULL
Hope Thats what you need, But i think you might want to wipe more than just the account, maybe user_auth, user_info. but its up to you.
P.S. sorry to pull the chain but, could you please pm me LDragon (Good thing :P)