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,
|
|
|
|
posts.post_time
|
|
|
|
FROM
|
|
|
|
posts,
|
|
|
|
authors
|
|
|
|
WHERE
|
|
|
|
posts.isanon = 0 AND
|
|
|
|
posts.authorid = authors.id AND
|
|
|
|
authors.name = :author
|
|
|
|
ORDER BY
|
|
|
|
posts.post_time DESC
|
|
|
|
LIMIT 10;
|