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,
|
|
|
|
posts.views
|
2020-05-17 18:05:00 +02:00
|
|
|
FROM
|
|
|
|
posts,
|
|
|
|
authors
|
|
|
|
WHERE
|
|
|
|
posts.isanon = 0 AND
|
|
|
|
posts.authorid = authors.id AND
|
2021-01-10 22:34:13 +01:00
|
|
|
authors.name = :author AND
|
|
|
|
posts.unlisted = 0
|
2020-05-17 18:05:00 +02:00
|
|
|
ORDER BY
|
|
|
|
posts.post_time DESC
|