select max(vi_id) as max_vi_id from yk_visit

2013 : Lost connection to MySQL server during query

error file : /index.php