Hi,
WHEN 'UNTOUCHED' THEN IF NOW > `oms_order`.`deadline` THEN -- line 24
> SQLSTATE[42000]: Syntax error or access violation: 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 'NOW > `oms\_order`.`deadline` THEN 0 ELSEIF DATE\_ADD(NOW, INTERVAL 7 DAY' at line 24' in ...
> ... verstehe aber nicht wirklich, was ich falsch mache.
Abgesehen von dem, was Martin schon sagte, ist IF im Handbuch nicht umsonst unter [Control Flow *Functions*](http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html#function_if) gelistet.
MfG ChrisB
--
RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?