I'm cleaning up my database and I want to get rid of all user accounts that never posted and are inactive since 1 year.

Code:
DELETE FROM `user` WHERE `usergroupid`=6 and `posts`=0 and ???
...