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-04-30 18:25:42')
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 25, 25
40855 Zephyren a crowd of rebellion x A.V.E.S.T S/S TEE BLACK
40856 Zephyren バンドじゃないもん x A.V.E.S.T S/S TEE BLACK
40857 Zephyren PassCode x A.V.E.S.T S/S TEE BLACK
52037 Zephyren(ゼファレン) BIG S/S TEE -VISIONARY/zebra eye- BLACK
18136 ZEPHYREN (ゼファレン) S/S TEE -10-FEET BUR
18137 ZEPHYREN (ゼファレン) S/S TEE -10-FEET BLK
18138 ZEPHYREN (ゼファレン) S/S TEE -10-FEET WHI
18139 ZEPHYREN (ゼファレン) S/S TEE -10-FEET BLK/BUR
18140 ZEPHYREN (ゼファレン) S/S TEE -ROTTENGRAFFTY BLK
18142 ZEPHYREN (ゼファレン) S/S TEE -ROTTENGRAFFTY BLK/BUR
25107 Zephyren (ゼファレン) MEANINGxZephyren S/S TEE -Precious-
15223 ZEPHYREN (ゼファレン) TEE S/S -VISONARY- BLK×GLD
15617 ZEPHYREN (ゼファレン) TEE S/S -Determination- WHT
57469 Zephyren(ゼファレン) DOLMAN BIG TEE S/S BLACK / NEVER say NEVER
57484 Zephyren(ゼファレン) DOLMAN BIG TEE S/S - 冥 - BLACK
15213 ZEPHYREN (ゼファレン) TEE S/S -Script- WHT
15214 ZEPHYREN (ゼファレン) TEE S/S -Script- BLK×WHT
15215 ZEPHYREN (ゼファレン) TEE S/S -Script- BLK×BGN
15218 ZEPHYREN (ゼファレン) TEE S/S -Skull head- BLK×BGN
15219 ZEPHYREN (ゼファレン) TEE S/S -Skull head- DNM
15227 ZEPHYREN (ゼファレン) TEE S/S -BEYOND- BLK×GLD
17017 ZEPHYREN (ゼファレン) S/S TEE -Script- - BLACK×GOLD
17019 ZEPHYREN (ゼファレン) S/S TEE -Script- - BURGUNDY
17020 ZEPHYREN (ゼファレン) S/S TEE -Script- - GRAY
17021 ZEPHYREN (ゼファレン) S/S TEE -SKULL HEAD- - WHITE