removed unsed
changed order of Where for delete_by
Merge pull request #128 from mayurvirkar/master

removed unsed $valid