Attempt to speed up user deletion when using mariadb 10 (the subquery took advantage of the available index starting with mariadb 11).