[#2872] Possible StackOverflowError when using plain SQL tables with inlined QueryParts