incorrect query resulting in non functional job purging
Merge pull request #2 from basz/fix/nonfunctional-purge-query

incorrect query resulting in non functional job purging