ERR: pass error original error message in read_sql_query (GH7730)

Closes #7730