The problem seems to be it's generating invalid SQL - you can see another example (same problem, at the iterator) see https://github.com/zikula/core/pull/674/files#r2696186