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