Force mariadb to use a non-correlated sub-query

Closes #3555720

Merge request reports

Loading