1
0

Fixed GetAll query.

This commit is contained in:
Alexander Andreev 2023-05-20 06:26:52 +04:00
parent a0995a0e97
commit 97b4887bc2
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -1,10 +1,11 @@
SELECT SELECT
`post`.`post_id`, `post`.`post_id`,
`category`.`id` AS `category_id`, `category`.`category_id` AS `category_id`,
`category`.`name` AS `category`, `category`.`name` AS `category`,
`post`.`date`, UNIXEPOCH(`post`.`date`),
`post`.`title`, `post`.`title`,
`post`.`body` `post`.`body`
FROM `post` FROM `post`
LEFT JOIN `category` LEFT JOIN `category`
ON `post`.`post_id` = `category`.`category_id`; ON `post`.`category_id` = `category`.`category_id`
ORDER BY `post`.`date` DESC;