BUG: fix read_sql delegation for queries without select statement (GH7324)
Closes #7324.

The `if 'select' in ...'` check was introduced for mysql legacy compatibility, but introduced problem if the query did not contain a select statement (eg a stored procedure). This should solve this, and passes the test suite (locally).
