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 =96
)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-27 14:11:52')
AND p.product_id IN (SELECT product_id FROM dtb_product_categories WHERE category_id = 371)
AND pc.del_flg = 0
GROUP BY p.product_id
ORDER BY p.update_date DESC
LIMIT 50, 25
21289 PUNK DRUNKERS パンツスウェット
21634 PUNK DRUNKERS 【PDSxBETONES】ボクサーパンツ illusion
21946 PUNK DRUNKERS 【PDSxストリートファイター】ガイルのミリタリーパンツ G.CAMO
21947 PUNK DRUNKERS 【PDSxストリートファイター】ガイルのミリタリーパンツ B.CAMO
21948 PUNK DRUNKERS 八つ裂きデニム BLUE
21949 PUNK DRUNKERS 八つ裂きデニム BLACK
22740 PUNK DRUNKERS ベトジョガーパンツ NAVY
22741 PUNK DRUNKERS ベトジョガーパンツ CAMO
22834 PUNK DRUNKERS 富士山オーバーオール INDIGO
22835 PUNK DRUNKERS 富士山オーバーオール BLACK
23386 PUNK DRUNKERS ワイドパンツ GRAY
23387 PUNK DRUNKERS ワイドパンツ BLACK
24985 PUNK DRUNKERS 骨ジャンケン総柄ショーツ BLACK
25286 PUNK DRUNKERS ペンペンジョガーパンツ BLUE/NAVY
25287 PUNK DRUNKERS ペンペンジョガーパンツ BUR/BEIGE
25288 PUNK DRUNKERS イージーDOパンツ NAVY
25289 PUNK DRUNKERS イージーDOパンツ ASH
28792 PUNK DRUNKERS あいつッスジョガーパンツ BLACK
28958 PUNK DRUNKERS キルティングーパンツ BLACK
28959 PUNK DRUNKERS キルティングーパンツ CAMO
28960 PUNK DRUNKERS スワットパンツ GRAY
28961 PUNK DRUNKERS スワットパンツ BLACK
28962 PUNK DRUNKERS 【PDSxKAMIKAZE ATTACK】攻デニム ONE-W
29076 PUNK DRUNKERS ギザロゴピチパン BLACK
31696 PUNK DRUNKERS デニムスウェットパンツ NAVY