Fixes #2159 - problem with command builder for delete with joins.

Fixes #2159 - fixed delete with joins for MySQL, added unit test, updated changelog.