This should use ProgrammingError, I suppose