Your program attempted to alter an index on a temporary table. Correct your program to avoid altering indexes on temporary tables.