Invalid query: No such file or directory Whole query: SELECT count(*) AS 'count' FROM `wp_weine_posts` WHERE `post_type` = 'dc_redactor';