[SQL]Small bug in unresolved.scala

name should throw exception with name instead of exprId.