I have tried this query but i am having this error code 1093 this query
delete  
from flow 
where flow.FlowID  in (SELECT flow.FlowID 
                       From flow 
                       WHERE ExpirationDate IS NOT NULL  AND `Username`="XYZ@gmail.com" 
                       GROUP BY Username, FlowName, EffectiveDate 
                       Having COUNT(*) >1 );
1093 error : Can't specify target table in clause.
 
     
    