SQL-request:-- Dumping structure for procedure dayzhivemind.pCleanup DELIMITER // CREATE DEFINER=`dayzhivemind`@`%` PROCEDURE `pCleanup`() BEGIN #Last ran update event_scheduler set LastRun = NOW() where System = "pCleanup"; #starts outofbounds cleanup CALL pCleanupOOB(); #remove damaged objects DELETE FROM object_data WHERE Damage = 1; #remove empty tents older than seven days DELETE FROM object_data WHERE (Classname like 'TentStorage%' or Classname like 'StashSmall%' or Classname like 'StashMedium%' or Classname like 'DomeTentStorage%') AND DATE(last_updated) < CURDATE() - INTERVAL 7 DAY AND Inventory = '[[[],[]],[[],[]],[[],[]]]'; DELETE FROM object_data WHERE (Classname like 'TentStorage%' or Classname like 'StashSmall%' or Classname like 'StashMedium%' or Classname like 'DomeTen[...] reply MySQL: #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 '' at line 74