Error 1093 states that you can\'t UPDATE or DELETE using a subquery if your subquery queries the table you are deleting from.
So you can\'t do
delete
Currently, you cannot delete from a table and select from the same table in a subquery - details
Currently, you cannot delete from a table and select from the same table in a subquery
You just cannot cannot specify target table for delete
one of my workaround : MySQL DELETE FROM with subquery as condition