SELECT SQL_CALC_FOUND_ROWS p.product_id, p.main_image, p.main_list_comment, p.comment2, p.update_date, p.sub_title6, MAX(price02), MAX(price03), MAX(stock), pc.point_rate, p.sales_datetime, p.sales_end_datetime, IF(p.tweet=p.tweet, 1, 0) AS tweet, p.name, p.movie_s, GROUP_CONCAT(cc.name separator ' ') AS classlist, GROUP_CONCAT(pc.stock separator ' ') AS stocklist
FROM dtb_products AS p
LEFT JOIN dtb_products_class AS pc ON p.product_id = pc.product_id
LEFT JOIN dtb_classcategory AS cc ON pc.classcategory_id1 = cc.classcategory_id
WHERE p.product_id IS NOT NULL
AND p.del_flg !=1
AND p.status =1
AND (p.sales_end_datetime IS NULL OR p.sales_end_datetime >= '2024-04-25 05:38:22')
AND pc.stock > 0
AND p.product_id IN (SELECT product_id FROM dtb_product_categories WHERE category_id = 674)
AND pc.del_flg = 0
GROUP BY p.product_id
ORDER BY p.update_date DESC
LIMIT 0, 25
71515 【予約商品】GALFY(ガルフィー) ガルフィーカモボックスロゴTee BLACK
71516 【予約商品】GALFY(ガルフィー) ガルフィーカモボックスロゴTee PINK
71517 【予約商品】GALFY(ガルフィー) ガルフィーカモボックスロゴTee BEIGE
71518 【予約商品】GALFY(ガルフィー) オワコン英字 Tee WHITE
71519 【予約商品】GALFY(ガルフィー) オワコン英字 Tee KHAKI
71520 【予約商品】GALFY(ガルフィー) オワコン英字 Tee BLACK
71523 【予約商品】GALFY(ガルフィー) 先輩セットアップ OFF WHITE
71524 【予約商品】GALFY(ガルフィー) 先輩セットアップ BEIGE
71526 【予約商品】GALFY(ガルフィー) パチンコセットアップ WHITE
71527 【予約商品】GALFY(ガルフィー) パチンコセットアップ BLACK
71534 【予約商品】GALFY(ガルフィー) ゴージャスセットアップ WINE
71535 【予約商品】GALFY(ガルフィー) ゴージャスセットアップ GREEN
71536 【予約商品】GALFY(ガルフィー) もっとゴージャスセットアップ BLUE
71537 【予約商品】GALFY(ガルフィー) もっとゴージャスセットアップ BLACK
71538 【予約商品】GALFY(ガルフィー) 卍甚平(マンジンベイ) BLACK
71539 【予約商品】GALFY(ガルフィー) 卍甚平(マンジンベイ) PINK
71540 【予約商品】GALFY(ガルフィー) GAL甚平 BLUE
71541 【予約商品】GALFY(ガルフィー) GAL甚平 PURPLE
71210 GALFY(ガルフィー) あの頃のギャル的ファットパンツ PINK
71212 GALFY(ガルフィー) あの頃のギャル的ノースリパーカー BLACK
71209 GALFY(ガルフィー) あの頃のギャル的ファットパンツ BLACK
71211 GALFY(ガルフィー) あの頃のギャル的ファットパンツ SAX
71152 GALFY(ガルフィー) 愛犬家お土産 Tee WHITE
71154 GALFY(ガルフィー) 愛犬家お土産 Tee BLACK BORDER
71153 GALFY(ガルフィー) 愛犬家お土産 Tee BLACK