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