Fix SQL query in pop_job_from_pending_queue
Merge pull request #2 from luser/fix-pop

Fix SQL query in pop_job_from_pending_queue