Fix EZP-23037: multiple JOINs in Subtree criterion