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 =393
)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-25 17:14:06')
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
34089 Zephyren(ゼファレン) ZIP PARKA -melt hand- PURPLE
34999 Zephyren BIG ZIP HOODY S/S-ENGRAVE- WHITE
35000 Zephyren BIG ZIP HOODY S/S-ENGRAVE- BLACK
35437 Zephyren (ゼファレン) ZIP PARKA -Inhale the black- WHITE
35438 Zephyren (ゼファレン) ZIP PARKA -Inhale the black- BLACKxNAVY
35440 Zephyren (ゼファレン) ZIP PARKA -Inhale the black- GRAYxBLACKHOOD
35806 Zephyren (ゼファレン) BIG ZIP PARKA BLACK
35823 Zephyren (ゼファレン) BOA ZIP PARKA WHITE
35824 Zephyren (ゼファレン) BOA ZIP PARKA BLACK
38333 Zephyren (ゼファレン) BANDANA ZIP PARKA -TRUST- WHITE
38334 Zephyren (ゼファレン) BANDANA ZIP PARKA -TRUST- BLACKxNAVY
38335 Zephyren (ゼファレン) BANDANA ZIP PARKA -TRUST- BLACKxBLACK
38344 Zephyren (ゼファレン) ZIP PARKA -MEMENTO MORI- BLACK
41969 Zephyren(ゼファレン) JERSEY HOOD BLACK
41971 Zephyren(ゼファレン) JERSEY HOOD MAXIM
42135 Zephyren(ゼファレン) ZIP PARKA -PLEDGE- BLACK
42139 Zephyren(ゼファレン) ZIP PARKA -DOOR- WHITE
42143 Zephyren(ゼファレン) ZIP PARKA -PRAY- WHITE / COLOR
45397 Zephyren (ゼファレン) 2019 福袋 -NEW YEAR BAG-
45976 Zephyren(ゼファレン)ZIP PARKA -alea iacta est / milestone- BLACK
45977 Zephyren(ゼファレン)ZIP PARKA -alea iacta est / milestone- GRAY
48807 Zephyren(ゼファレン) ZIP PARKA - As above, So below - BLACK
49952 Zephyren(ゼファレン) ZIP PARKA - As above, So below - WHITE
49953 Zephyren(ゼファレン) ZIP PARKA - As above, So below - GRAY
50117 Zephyren(ゼファレン) ZIP PARKA - Ingrain - BLACK
50118 Zephyren(ゼファレン) ZIP PARKA - Ingrain - WHITE
50119 Zephyren(ゼファレン) ZIP PARKA - GIRL BUNNY - BLACK
50120 Zephyren(ゼファレン) ZIP PARKA - GIRL BUNNY - YELLOW
50122 Zephyren(ゼファレン) ZIP PARKA - GIRL TATTOO - PURPLE
51936 Zephyren(ゼファレン) ZIP PARKA - Gott Ist Todt - WHITE
51937 Zephyren(ゼファレン) ZIP PARKA - Gott Ist Todt - BLACK
52417 Zephyren 2020 NEW YEAR BAG