select max(vi_id) as max_vi_id from g4_bh_visit

145 : Table '.\hansamrak\g4_bh_visit' is marked as crashed and should be repaired

error file : /main/main.php