Avoid using LIMIT in a subquery
Merge pull request #186 from edx/will/limit-subquery-fix

Avoid using LIMIT in a subquery