fixed OUTPUT clause for invalid column error