See http://lists.wikimedia.org/pipermail/wikitech-l/2013-April/068899.html - the query is just wrong, and I even expected that and added a TODO about it in the past but then ended up doing more important stuff, grrrr:
Version: wmf-deployment
Severity: normal