ERR: pass original error message in read_sql_query (GH7730)

Closes #7730