select max(vi_id) as max_vi_id from jm_visit

145 : Table '.\cleanbed\jm_visit' is marked as crashed and should be repaired

error file : /bbs/login.php