diff --git a/core/modules/node/node.module b/core/modules/node/node.module index be15dee..2266a3a 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -2577,10 +2577,10 @@ function node_page_default() { $site_config = config('system.site'); $select = db_select('node', 'n') ->fields('n', array('nid', 'sticky', 'created')) - ->condition('promote', 1) - ->condition('status', 1) - ->orderBy('sticky', 'DESC') - ->orderBy('created', 'DESC') + ->condition('n.promote', 1) + ->condition('n.status', 1) + ->orderBy('n.sticky', 'DESC') + ->orderBy('n.created', 'DESC') ->extend('Drupal\Core\Database\Query\PagerSelectExtender') ->limit(variable_get('default_nodes_main', 10)) ->addTag('node_access');