syntax error: SELECT COUNT(*) AS todayrecord FROM table_counter WHERE tm>'1795194000' MySQL server has gone away