MySQL server has gone awaysyntax error: SELECT MAX(id) AS total FROM table_counters