xbmc/xbmc — pull request #2056 by skywalker666 (2013-01-09 11:56:03+00:00)
Title: 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.