Minor: improved exception on sql parsing