had to update column name after where clause