Fixed error check for mis-spelled column name