I've a problem with the following SQL query:
DELETE FROM table1 WHERE uid =
(SELECT table1.uid from table1 INNER JOIN table2 ON table2.user = table1.uid
INNER JOIN table3 ON table3.uid = table2.seminar WHERE table3.end_date < CURDATE()))
The error is: You can't specify target table 'table1' for update in FROM clause
Does anybody have an idea how to fix that?