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-03-29 14:26:34')
AND pc.stock > 0
AND p.product_id IN (SELECT product_id FROM dtb_product_categories WHERE category_id = 447)
AND pc.del_flg = 0
GROUP BY p.product_id
ORDER BY MAX(price02)
LIMIT 0, 25
19716 ZEPHYREN (ゼファレン) METAL RING -VISIONARY - GOLD
15637 ZEPHYREN (ゼファレン) TANK TOP -BEYOND- WHT
59717 Zephyren(ゼファレン) LONG BEANIE -You Are Here WHITE
59723 Zephyren(ゼファレン) LONG BEANIE -You Are Here PURPLE
59724 Zephyren(ゼファレン) LONG BEANIE -You Are Here ORANGE
62312 【予約商品】Zephyren(ゼファレン) TANKTOP - BEYOND - WHITE
62313 Zephyren(ゼファレン) TANKTOP - BEYOND - BLACK
15222 ZEPHYREN (ゼファレン) TEE S/S -VISIONARY- BLK×WHT
15225 ZEPHYREN (ゼファレン) TEE S/S -BEYOND- WHT
55042 Zephyren(ゼファレン)S/S TEE - VISIONARY - WHITE
68008 【BanG Dream! ×ゲキクロ 2023 ver.】湊友希那×ZEPHYREN コラボ Tシャツ
17231 ZEPHYREN (ゼファレン) B.B.CAP -BEYOND- - BLACK/WHITE
17236 ZEPHYREN (ゼファレン) B.B.CAP -BEYOND- BLACK/GRAY
62294 Zephyren(ゼファレン) S/S TEE - In vino veritas - YELLOW
16983 ZEPHYREN (ゼファレン) TANK TOP -BONEYARD- - BLACK
46450 Zephyren(ゼファレン)BIG TANKTOP BLACK / 如意宝珠
70699 優里xZephyren -Betelgeuse- S/S TEE BLACK
70700 優里xZephyren -Betelgeuse- S/S TEE WHITE
48233 Zephyren(ゼファレン)PONCHO HOODY S/S WHITE / 如意宝珠
66499 10-FEET×Zephyren(ゼファレン) DOLMAN BIG TEE WHITE
55217 Zephyren(ゼファレン)WIDEBRIM FELT HAT BEIGE
68007 【BanG Dream! ×ゲキクロ 2023 ver.】湊友希那×ZEPHYREN コラボ プルオーバーパーカー
27138 Zephyren (ゼファレン) PARKA -BEYOND- WHITE
27139 Zephyren (ゼファレン) PARKA -BEYOND- BLACK
16880 ZEPHYREN (ゼファレン) EMBLEM SHIRT S/S - WHITE