/*
Select the data we need to read a story (and maybe display an edit button)
*/

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