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} WHERE (id = ? AND ({posts}.user_id = :own_posts_id)) OR (id = ? AND user_id = ? AND ({posts}.user_id = :own_posts_id))  ORDER BY pubdate DESC LIMIT 1