Invalid query: MySQL server has gone away Whole query: SELECT count(*) AS 'count' FROM `wp_posts` WHERE `post_type` = 'dc_contactme';