SyntaxFix
Write A Post
Hire A Developer
Questions
you can use inner join :
DELETE ps FROM posts ps INNER JOIN (SELECT distinct id FROM posts GROUP BY id HAVING COUNT(id) > 1 ) dubids on dubids.id = ps.id