Tach!
DELETE FROM tbl_eintrag AS k WHERE k.startdate < date_add(current_date, interval -7 day) AND ok = 1
#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 'AS k WHERE k.startdate < date_add(current_date, interval -7 day) AND ok ' at line 1
Wenn das AS angemeckert wird, dann lass es weg. Bei einem einzigen Tabellennamen einen Alias zu verwenden, ist nur Mehrarbeit.
dedlfix.