Checking news_target_content.published as well
This commit is contained in:
@@ -19,7 +19,7 @@ SELECT `news`.`id`, `content`.`title`, `content`.`content`, `news`.`podcast` AS
|
||||
LEFT JOIN `news_regions` AS `regions` ON `regions`.`id` = `news`.`region`
|
||||
LEFT JOIN `news_sources` AS `sources` ON `sources`.`id` = `news`.`source`
|
||||
LEFT JOIN `news_themes` AS `themes` ON `themes`.`id` = `news`.`theme`
|
||||
WHERE `news`.`category` = :category AND `content`.`target` = 1 AND `news`.`active` = 1 AND `content`.`active` = 1
|
||||
WHERE `news`.`category` = :category AND `content`.`target` = 1 AND `news`.`active` = 1 AND `content`.`active` = 1 AND `content`.`published` = 1
|
||||
QUERY;
|
||||
|
||||
private static $LOAD_IMAGES =
|
||||
|
||||
Reference in New Issue
Block a user