2020-12-20 09:16:23 +01:00
|
|
|
/* Get the data we need to display a particular author's latest stories */
|
|
|
|
|
2020-05-17 18:05:00 +02:00
|
|
|
SELECT
|
|
|
|
posts.id,
|
|
|
|
posts.post_title,
|
2021-01-04 03:48:29 +01:00
|
|
|
posts.post_time,
|
2021-01-11 04:34:22 +01:00
|
|
|
posts.views,
|
|
|
|
posts.unlisted,
|
|
|
|
posts.hash
|
2020-05-17 18:05:00 +02:00
|
|
|
FROM
|
|
|
|
posts,
|
|
|
|
authors
|
|
|
|
WHERE
|
|
|
|
posts.isanon = 0 AND
|
|
|
|
posts.authorid = authors.id AND
|
2021-01-11 04:34:22 +01:00
|
|
|
authors.name = :author
|
2020-05-17 18:05:00 +02:00
|
|
|
ORDER BY
|
|
|
|
posts.post_time DESC
|