Fixed GetAll query.
This commit is contained in:
parent
a0995a0e97
commit
97b4887bc2
@ -1,10 +1,11 @@
|
||||
SELECT
|
||||
`post`.`post_id`,
|
||||
`category`.`id` AS `category_id`,
|
||||
`category`.`category_id` AS `category_id`,
|
||||
`category`.`name` AS `category`,
|
||||
`post`.`date`,
|
||||
UNIXEPOCH(`post`.`date`),
|
||||
`post`.`title`,
|
||||
`post`.`body`
|
||||
FROM `post`
|
||||
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