I have an information_schema query that works fine on MySQL 5.7.19, but behaves very strangely on MySQL 8.0.22.
information_schema
The purpose of the query is to retrieve a