If I add $query->getQuerySettings()->setReturnRawQueryResult(true); then the result is correct. But then I would need to rewrite my whole Controller what I would like to avoid. Any suggestions? Is this an extbase bug?