handle sql parser errors