Escaping column names and correctly handling nulls.