Updated variable name

changed $MODEL (did not exist) to $TABLE on the first echo