Users removed themselves from Private Messages (PM) and then the mods can't see their PM history

Thank you very much!
I am not very familiar with SQL, can you let me know what SQL code should we write in Data Explorer?