select max(vi_id) as max_vi_id from g4_visit

2006 : MySQL server has gone away

error file : /app/link/link4.php