WordPress database error: [MySQL server has gone away]
SELECT t.term_id, COUNT(*) AS count_type FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS r ON r.term_taxonomy_id = tt.term_taxonomy_id INNER JOIN wp_posts AS p ON p.ID = r.object_id WHERE tt.taxonomy IN ('post_tag') AND tt.count > 0 AND p.post_type IN('cricket') GROUP BY t.term_id ORDER BY tt.count DESC LIMIT 30

1 2 3 79