Describe the bug
In #12945 the emulation of an mark join has a bug when there is duplicate values in the subquery. This would be fixable by adding a distinct before the join. This can also be resolved by using a LeftMark join.
To Reproduce
No response
Expected behavior
No response
Additional context
No response