diff --git a/InventoryCatalog/Model/ResourceModel/StockStatusExpressionForDefaultStock.php b/InventoryCatalog/Model/ResourceModel/StockStatusExpressionForDefaultStock.php index 1966ab83c21..21ab7e3e74b 100644 --- a/InventoryCatalog/Model/ResourceModel/StockStatusExpressionForDefaultStock.php +++ b/InventoryCatalog/Model/ResourceModel/StockStatusExpressionForDefaultStock.php @@ -46,7 +46,7 @@ public function getExpression(AdapterInterface $connection, bool $isAggregate): $isInStockExpression = $connection->getCheckSql( 'cisi.is_in_stock = 0', 0, - $connection->getCheckSql('css.stock_status IS NOT NULL', 'css.stock_status', $stockItemInStockField) + $connection->getCheckSql('css.stock_status IS NOT NULL', 'cisi.is_in_stock', $stockItemInStockField) ); if ($isManageStock) {