a,b,c are aliases … There’s nothing wrong with using aliases if used correctly..
I think mrmist is right, i’m not entirely sure the left joins are correct..
More on joins:
https://dev.mysql.com/doc/refman/5.1/en/join.html
Please don’t just assume it’s right, refer to the docs and confirm what needs to be changed, if anything.
I’m not 100% sure, but i think b and c should be removed from the first line, leaving them as optional joins (if a match exists, delete it, else ignore), otherwise you’ll only get deletes where there are matches across the 3 tables (not when there’s only matches in the first, which is likely what you’d want). I could be wrong…
Of course, what you could do (to test), would be to install another copy of WordPress, locally, sub directory, whatever!.. import your database, then run the query on the copy install… that way you put nothing at risk and you can see the results without touching your main install (or even quicker, just make a copy of the database and run the query directly in phpmyadmin on the new database).