SQL Prepare Error

Error Number: HY000

Table './tphamgia_db/table_counter' is marked as crashed and last (automatic?) repair failed

select max(id) as total from table_counter