Hi, I want to remove all inactive spam users from mysql I looked up on the internet and it said to use this command: delete from jos_users where lastvisitDate=’0000-00-00 00:00:00′ but i get this error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '00:00:00′' at line 1 Any ideas?
Why not just delete inside Joomla? Sort by "last logged in", choose your date cut off, and delete the rest.
Good answer ...or use delete from jos_users where lastvisitDate < ’2010-00-00 00:00:00′; (to delete where Date is in the past of 2010)