select max(vi_id) as max_vi_id from ktfs.g4_visit

145 : Table '.\ktfs\g4_visit' is marked as crashed and should be repaired

error file : /bbs/board.php