SELECT SQL_CALC_FOUND_ROWS p.del_flg AS new_arrival_content, 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 (
SELECT product_id, category_id
FROM dtb_product_categories
WHERE category_id =1
)AS pcat
LEFT JOIN dtb_products AS p ON p.product_id = pcat.product_id
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-05-01 19:50:52')
AND FIND_IN_SET(1, p.color)
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 MAX(price02) DESC
LIMIT 0, 25
63263 GALFY (ガルフィー) わんわん大学 SETUP あの夏 BLACK
58832 GALFY (ガルフィー) 炎上大学 BigTee 漆黒
67589 GALFY (ガルフィー)ピカピカ注射器ラグラン Tee BLACK
68136 GALFY (ガルフィー) カットデニム紋紋 GALFY Tee BLACK
53986 GALFY 鬼YABAI Tee 漆黒
54171 GALFY カラーギャングTee 白黒ギャング
54172 GALFY カラーギャングTee 黒紫ギャング
58387 GALFY (ガルフィー) 半分カラーギャング BIG Tee 漆黒 × 紅
58390 GALFY (ガルフィー) 二代目カラーギャング BIG Tee 漆黒 × 灰
67563 GALFY (ガルフィー)染め染めわんちゃんボロボロ Tee INK BLACK
67580 GALFY (ガルフィー) チャカパッチ Tee BLACK
67599 GALFY (ガルフィー) 半炎上 Tee INK BLACK
68130 GALFY (ガルフィー) ビカビカ GALFY Tee BLACK
68153 GALFY (ガルフィー) モクモク Tee BLACK
68162 GALFY (ガルフィー) 90’ s 暗号 Tee BLACK
71149 GALFY(ガルフィー) ぷくぷくGALFY Tee BLACK
71156 GALFY(ガルフィー) 病みに染まりしTシャツ BLACK
71179 GALFY (ガルフィー) 球蹴りTee BLACK
71180 GALFY (ガルフィー) チーマーTee BLACK
71564 GALFY (ガルフィー) ハンドボールTee BLACK
59349 あいにょん. × GALFY × GEKIROCK CLOTHING JUST"CHILL"ING TEE BLACK
63857 わかざえもん×GALFY×GEKIROCK CLOTHING 四本弦左指天使 Tee BLACK
65622 やね×GALFY×GEKIROCK CLOTHING やねの犬Tシャツ BLACK
68396 【数量限定】東京初期衝動×GALFY×GEKIROCK CLOTHING 限定コラボ・Tシャツ BLACK
70837 Appare!×GALFY×GEKIROCK CLOTHING コラボ・Tシャツ BLACK