Invalid query: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Whole query: SELECT count(*) AS 'count' FROM `wp_posts` WHERE `post_type` = 'dc_bloglinkit';