throw error if column was not found