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