Fixed GetAll query.
This commit is contained in:
parent
a0995a0e97
commit
97b4887bc2
@ -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;
|
Loading…
Reference in New Issue
Block a user