SELECT DISTINCT posts.id AS id, posts.slug AS slug, posts.title AS title, posts.guid AS guid, posts.content AS content, posts.cached_content AS cached_content, posts.user_id AS user_id, posts.status AS status, posts.pubdate AS pubdate, posts.updated AS updated, posts.modified AS modified, posts.content_type AS content_type FROM posts LEFT JOIN post_tokens pt_denied ON posts.id = pt_denied.post_id AND pt_denied.token_id IN (21) WHERE ((status = ? AND content_type = ?)) AND ((posts.content_type IN (1,2)) AND (pt_denied.post_id IS NULL)) ORDER BY pubdate DESC LIMIT 5