select max(vi_id) as max_vi_id from g4_visit

2006 : MySQL server has gone away

error file : /shop/item.php