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-25 19:23:11')
AND p.product_id IN (SELECT product_id FROM dtb_product_categories WHERE category_id = 653)
AND pc.del_flg = 0
GROUP BY p.product_id
ORDER BY p.update_date DESC
LIMIT 0, 25
69026 Gurin. ×PSYCHOLOGICAL METAMORPHOSIS EYES TEE WHITE
69027 Gurin. ×PSYCHOLOGICAL METAMORPHOSIS EYES TEE BLACK
68930 PSYCHOLOGICAL METAMORPHOSIS RIPSTOP LOOSE TEE KHAKI
68929 PSYCHOLOGICAL METAMORPHOSIS RIPSTOP LOOSE TEE BLACK
62863 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 06 - BLACK
62864 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 06 - E.GREEN
62865 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 06 - WHITE
62875 PSYCHOLOGICAL METAMORPHOSIS 4 SEASONS TEE - WHITE
62874 PSYCHOLOGICAL METAMORPHOSIS 4 SEASONS TEE - BLACK
62850 PSYCHOLOGICAL METAMORPHOSIS COLLEGE WIDE TEE - KHAKI
62849 PSYCHOLOGICAL METAMORPHOSIS COLLEGE WIDE TEE - BLACK
62857 PSYCHOLOGICAL METAMORPHOSIS 4 TYPES TEE - BLACK
62856 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 05 - WHITE
62855 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 05 - MT.GREEN
62854 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 05 - BLACK
62841 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 04 - WHITE
62840 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 04 - TURQUOISE
62839 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. TEE 04 - BLACK
60180 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin.SS TEE 03 WHITE
60182 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. SS TEE 02 WHITE
60183 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin. SS TEE 02 BLACK
63134 【予約商品】PSYCHOLOGICAL METAMORPHOSIS CS RINGER TEE - BLACK
60181 PSYCHOLOGICAL METAMORPHOSIS PLMP×Gurin.SS TEE 03 BLACK
60054 PSYCHOLOGICAL METAMORPHOSIS DYED 2TONE SS TEE BLU-BLK
60055 PSYCHOLOGICAL METAMORPHOSIS DYED 2TONE SS TEE ORG-BLK