remove previous query table variable name from prev->table