Index: /branches/version-2_4/data/class/pages/products/LC_Page_Products_Detail.php
===================================================================
--- /branches/version-2_4/data/class/pages/products/LC_Page_Products_Detail.php	(revision 18267)
+++ /branches/version-2_4/data/class/pages/products/LC_Page_Products_Detail.php	(revision 18407)
@@ -201,5 +201,5 @@
             }
             break;
-            
+
         case 'add_favorite':
             // お気に入りに追加する
@@ -724,8 +724,8 @@
                 . "   FROM dtb_product_categories T2  "
                 . " GROUP BY product_id) AS T3 USING (product_id)";
-        $objQuery->setorder("product_rank DESC");
+        $objQuery->setorder("T3.product_rank DESC");
         for($i = 0; $i < $max; $i++) {
             $where = "del_flg = 0 AND T3.product_id = ? AND status = 1";
-            $arrProductInfo = $objQuery->select("DISTINCT main_list_image, price02_min, price02_max, price01_min, price01_max, name, point_rate, product_rank", $from, $where, array($arrRet[$i]['recommend_product_id']));
+            $arrProductInfo = $objQuery->select("DISTINCT main_list_image, price02_min, price02_max, price01_min, price01_max, name, point_rate, T3.product_rank", $from, $where, array($arrRet[$i]['recommend_product_id']));
 
             if(count($arrProductInfo) > 0) {
@@ -846,9 +846,9 @@
             $add_favorite_product_id = $_POST['favorite_product_id'];    // お気に入りに追加する商品ID
             $customer_id = $objCustomer->getValue('customer_id');        // ログイン中の顧客ID
-    
+
             // お気に入りに商品を追加する際のエラーチェックを行う
             $this->arrErr = array();    // エラー内容
             $this->lfCheckAddFavoriteProduct($customer_id, $add_favorite_product_id);
-            
+
             if( count($this->arrErr) == 0 ) {
                 // お気に入りに商品を追加する
@@ -858,5 +858,5 @@
         return ;
     }
-    
+
     /**
      * 商品をお気に入りにいれる際のエラーチェックを行う
@@ -872,5 +872,5 @@
             exit;
         }
-        
+
         // 既にお気に入り商品として追加されていないかチェック
         if (SC_Helper_DB_Ex::sfDataExists( 'dtb_customer_favorite_products', 'customer_id = ? AND product_id = ?', array($customer_id, $add_favorite_product_id)) ) {
@@ -879,5 +879,5 @@
         }
     }
-    
+
     /**
      * お気に入り商品登録
