SELECT
post_title,
post_text,
posts.authorid,
posts.isanon,
authors.name,
views
FROM
posts,authors
WHERE
posts.authorid = authors.id AND
posts.id = :id;