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-28 16:16:07')
AND pc.classcategory_id1 IN( 14,61,35)
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 100, 25
24396 Zephyren (ゼファレン) S/S TEE -DAWN- WHITE
24397 Zephyren (ゼファレン) S/S TEE -DAWN- BLACK
24398 Zephyren (ゼファレン) S/S TEE -DAWN- BLACK/RED
24709 Zephyren (ゼファレン) PAISLEY POCKET TEE WHITE
24710 Zephyren (ゼファレン) PAISLEY POCKET TEE GRAY
24711 Zephyren (ゼファレン) PAISLEY POCKET TEE NAVY
24719 Zephyren (ゼファレン) S/S TEE -ALCHEMY- WHITE
24720 Zephyren (ゼファレン) S/S TEE -ALCHEMY- BLACK
24721 Zephyren (ゼファレン) S/S TEE -REBEL FLAG- WHITE
24722 Zephyren (ゼファレン) S/S TEE -REBEL FLAG- BLACK
24723 Zephyren (ゼファレン) S/S TEE -REBEL FLAG- BLACK/RED
24724 Zephyren (ゼファレン) S/S TEE -REBEL FLAG- BURGUNDY
24732 Zephyren (ゼファレン) PATCH S/S TEE -VISIONARY- WHITE
24733 Zephyren (ゼファレン) PATCH S/S TEE -VISIONARY- BLACK
24940 Zephyren (ゼファレン) S/S TEE -VISIONARY- NAVY
24942 Zephyren (ゼファレン) S/S TEE -BEYOND- BLUE
24944 Zephyren (ゼファレン) S/S TEE -PAISLEY- WHITE
24945 Zephyren (ゼファレン) S/S TEE -PAISLEY- BLACKxWHITE
24952 Zephyren (ゼファレン) PAISLEY NECK S/S TEE WHITE
24953 Zephyren (ゼファレン) PAISLEY NECK S/S TEE BLACK
24954 Zephyren (ゼファレン) PAISLEY NECK S/S TEE GRAY
24955 Zephyren (ゼファレン) PAISLEY NECK S/S TEE BURGUNDY
24956 Zephyren (ゼファレン) REVERSE S/S TEE SKULL HEAD
24957 Zephyren (ゼファレン) REVERSE S/S TEE NAVY BEYOND
24958 Zephyren (ゼファレン) REVERSE S/S TEE BLACK BEYOND