If you remove a field from an entity, any indexes you created using that field will still be lingering. I believe this is also the case if you change the name of of a field, the index will not get updated.
Having this invalid index creates a problem, especially when generating tables.