Issue #13810: This should fix the DELETE statement for MySQL (UNTESTED!).

MySQL does not allow for SubSelects on the table you are updating or deleting from. So we have to use a statement with joins instead. Unfortunately the DeleteValues function does not support the needed syntax, so we just execute the plain query.