2023-05-10 03:21:29 +04:00
|
|
|
SELECT
|
|
|
|
`post`.`post_id`,
|
2023-05-20 06:26:52 +04:00
|
|
|
`category`.`category_id` AS `category_id`,
|
2023-05-10 03:21:29 +04:00
|
|
|
`category`.`name` AS `category`,
|
2023-05-22 04:02:17 +04:00
|
|
|
`post`.`date`,
|
2023-05-10 03:21:29 +04:00
|
|
|
`post`.`title`,
|
|
|
|
`post`.`body`
|
|
|
|
FROM `post`
|
|
|
|
LEFT JOIN `category`
|
2023-05-20 06:26:52 +04:00
|
|
|
ON `post`.`category_id` = `category`.`category_id`
|
|
|
|
ORDER BY `post`.`date` DESC;
|