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 (
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-04-18 19:51:43')
AND pc.classcategory_id1 IN( 12,44)
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 p.update_date DESC
LIMIT 0, 25
70705 MY FIRST STORY×Zephyren - Fight Back 23 - BIG TEE BLACK
70699 優里xZephyren -Betelgeuse- S/S TEE BLACK
70700 優里xZephyren -Betelgeuse- S/S TEE WHITE
68008 【BanG Dream! ×ゲキクロ 2023 ver.】湊友希那×ZEPHYREN コラボ Tシャツ
66497 10-FEET×Zephyren(ゼファレン) DOLMAN BIG TEE BLACK
66499 10-FEET×Zephyren(ゼファレン) DOLMAN BIG TEE WHITE
64589 Zephyren(ゼファレン)S/S TEE - VISIONARY - WHITE
64599 【予約商品】Zephyren(ゼファレン)S/S TEE - BEYOND - WHITE
64600 【予約商品】Zephyren(ゼファレン)S/S TEE - BEYOND - BLACK
62239 Zephyren(ゼファレン) SWITCHING TEE PAISLEY
62240 Zephyren(ゼファレン) SWITCHING TEE BORDER
62241 Zephyren(ゼファレン) SWITCHING TEE THUNDER
62294 Zephyren(ゼファレン) S/S TEE - In vino veritas - YELLOW
62288 Zephyren(ゼファレン) S/S TEE - FEAR NO ONE - BLACK
62293 Zephyren(ゼファレン) S/S TEE - In vino veritas - BLACK
62296 Zephyren(ゼファレン) S/S TEE - In vino veritas - STONE
62238 Zephyren(ゼファレン) SWITCHING TEE FLOWER
62255 Zephyren(ゼファレン) S/S TEE - VISIONARY - WHITE
62266 Zephyren(ゼファレン) S/S TEE - BEYOND - BLACK
62274 Zephyren(ゼファレン) S/S TEE - BEYOND - BLUE
62287 Zephyren(ゼファレン) S/S TEE - FEAR NO ONE - WHITE
52482 【バンドリ!×ゲキクロ 第4弾復刻】ZEPHYREN×氷川 日菜コラボ 限定 Tシャツ
59873 NEMOPHILA×ZEPHYREN×GEKIROCK CLOTHING コラボTシャツ
57494 Zephyren(ゼファレン) SWITCHING TEE BLACK / BORDER
57496 Zephyren(ゼファレン) SWITCHING TEE BLACK / FLOWER