Challenges API query fix.
Merge pull request #164 from Ghost141/challenges_api_fix

Challenges API query fix.