SQL Prepare Error

Error Number: HY000

Table './gnirupv0k1ob_db3/table_counter' is marked as crashed and should be repaired

select max(id) as total from table_counter