I got the following error from a MySQL query.
#126 - Incorrect key file for table
I have not even declared a key for this table, but I do have i
Error #126 usually occurs when you got a corrupt table. The best way to solve this is to perform repair. This article might help:
http://dev.mysql.com/doc/refman/5.0/en/repair-table.html