Index: branches/version-2_11-dev/data/class/helper/SC_Helper_DB.php
===================================================================
--- branches/version-2_11-dev/data/class/helper/SC_Helper_DB.php	(revision 21319)
+++ branches/version-2_11-dev/data/class/helper/SC_Helper_DB.php	(revision 21320)
@@ -657,8 +657,8 @@
         // 在庫無し商品の非表示
         if (NOSTOCK_HIDDEN) {
-            $sql_where_dtl = 'stock_max >= 1 OR stock_unlimited_max = 1';
+            $sql_where_dtl = 'stock >= 1 OR stock_unlimited = 1';
             $from = $objProduct->alldtlSQL($sql_where_dtl);
         }else{
-            $from = " dtb_products as alldtl ";
+            $from = 'dtb_products as alldtl';
         }
 
Index: branches/version-2_11-dev/data/class/SC_Product.php
===================================================================
--- branches/version-2_11-dev/data/class/SC_Product.php	(revision 21315)
+++ branches/version-2_11-dev/data/class/SC_Product.php	(revision 21320)
@@ -664,11 +664,11 @@
      * 商品詳細の SQL を取得する.
      *
-     * @param string $where 商品詳細の WHERE 句
+     * @param string $where_products_class 商品詳細の WHERE 句
      * @return string 商品詳細の SQL
      */
-    function alldtlSQL($where = "") {
-        $where_clause = "";
-        if (!SC_Utils_Ex::isBlank($where)) {
-            $where_clause = " WHERE " . $where;
+    function alldtlSQL($where_products_class = '') {
+        $where_clause = '';
+        if (!SC_Utils_Ex::isBlank($where_products_class)) {
+            $where_clause = 'WHERE ' . $where_products_class;
         }
         /*
