Fixed bug where deleteAll tried to delete same id multiple times.

Ensure find done in deleteAll only returns distinct ids. A wacky
combination of association and conditions can sometimes generate
multiple rows per id.
Merge pull request #2421 from ADmad/2.4-bugfix-deleteall

Fixed bug where deleteAll tried to delete same id multiple times.