Invalid query: Can't connect to MySQL server on 'localhost' (10061) Whole query: SELECT count(*) AS 'count' FROM `wp_posts` WHERE `post_type` = 'dc_contactme';