[Maria-developers] Updated (by Igor): Backport 6.0 subquery code (104)