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 =392
)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-24 17:56: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 120, 120
41990 Zephyren(ゼファレン) SKA JUMPER BLACK/WHITE
41991 Zephyren(ゼファレン) SKA JUMPER BLUE
42015 Zephyren(ゼファレン) MA-1 -PLEDGE- BLACK
42016 Zephyren(ゼファレン) MA-1 -PLEDGE- KHAKI
42017 Zephyren(ゼファレン) KNIT MA-1 WHITE
42018 Zephyren(ゼファレン) KNIT MA-1 BLACK
42024 Zephyren(ゼファレン) BOA HOOD JACKET BLACK
42030 Zephyren(ゼファレン) BOA JACKET WHITE
45397 Zephyren (ゼファレン) 2019 福袋 -NEW YEAR BAG-
45527 Zephyren(ゼファレン)MOUNTAIN PARKA BLACK
45528 Zephyren(ゼファレン)MOUNTAIN PARKA NAVY
45598 Zephyren(ゼファレン)DENIM JACKET HARD WASH / BANDANNA
45790 Zephyren(ゼファレン)BANDANA MILITARY JACKET BLACK
45791 Zephyren(ゼファレン)BANDANA MILITARY JACKET CAMO
45794 Zephyren(ゼファレン)MA-1 BLACK
45795 Zephyren(ゼファレン)MA-1 CAMO
45796 Zephyren(ゼファレン)MA-1 MIX
45797 Zephyren(ゼファレン)SKA JUMPER PAISLEY
45798 Zephyren(ゼファレン)SKA JUMPER RED
46183 Zephyren(ゼファレン)MODS COAT BLACK
46184 Zephyren(ゼファレン)MODS COAT KHAKI
50212 Zephyren(ゼファレン) MODS COAT - oldschool - BLACK
50213 Zephyren(ゼファレン) MODS COAT - oldschool - KAHKI
50372 Zephyren(ゼファレン) BIG JERSEY BLACK / apocalypse
50373 Zephyren(ゼファレン) BIG JERSEY BLACK
50374 Zephyren(ゼファレン) BIG JERSEY BLACK / MIX
50518 Zephyren(ゼファレン) NYLON MODS COAT BLACK
50522 Zephyren(ゼファレン) MA-1 BLACK
50652 Zephyren(ゼファレン) MA-1 - apocalypse - KHAKI
50653 Zephyren(ゼファレン) MA-1 - apocalypse - NAVY
50655 Zephyren(ゼファレン) LONG COAT GREEN
50763 Zephyren(ゼファレン) DENIM JACKET HARD WASH / BUNNY
51038 Zephyren(ゼファレン) SKA JUMPER BLACK
51040 Zephyren(ゼファレン) SKA JUMPER PAISLEY
51041 Zephyren(ゼファレン) MA-1 - apocalypse - WHITE
51798 Zephyren(ゼファレン) DAMEGE JACKET CAMO
51799 Zephyren(ゼファレン) RAKUGAKI JACKET BLACK
51803 Zephyren(ゼファレン) NYLON JACKET NAVY / BURGUNDY
51804 Zephyren(ゼファレン) NYLON JACKET CAMO / KHAKI
51808 Zephyren(ゼファレン) CHESTER COAT PYTHON
52436 ROTTENGRAFFTY×Zephyren 20周年限定コラボジャケット M-65 Black
52437 ROTTENGRAFFTY×Zephyren 20周年限定コラボジャケット M-65 KHAKI
52534 MY FIRST STORY×Zephyren MA-1 -Captivate- CAMO
52535 MY FIRST STORY×Zephyren MA-1 -Captivate- BLACK
52536 MY FIRST STORY×Zephyren MA-1 -Captivate- WHITE