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