How to fix this error
[Err] 1093 - You can't specify target table 'user_log' for update in FROM clause
DELETE
user_log
FROM
user_log
WHERE
UpdateDate < (SELECT MAX(UpdateDate)
FROM user_log
AS lookup
WHERE Email = user_log.Email)
Let me know
if you want to delete data of table then you use:
delete from [table] where [condition].
also for max you have to group your data first.
when you want to use a condition on a group by then you have to use having instead of where.