my problem forces me to use UNIX_TIMESTAMP() everywhere, but like this it won't work:
UPDATE mytable SET del_usr = 'Y', last_access = last_access WHERE (UNIX_TIMESTAMP(DATE_ADD(NOW(),INTERVAL 0 HOUR))-UNIX_TIMESTAMP(last_access)) > 172800 OR (conf = 'N' AND (UNIX_TIMESTAMP(DATE_ADD(NOW(),INTERVAL 0 HOUR))-UNIX_TIMESTAMP(date_start)) > 86400;
You have an error in your SQL syntax near '' at line 1
You could do me a great favor if you could check that huge query. Thanks!!
Philip