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 =572
)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-05-01 14:36:55')
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
LIMIT 0, 25
10686 PUNK DRUNKERS 1942.ショーツ GREEN
18861 PUNK DRUNKERS 【PDSx天才バカボン】総柄ショーツ GREEN
18864 PUNK DRUNKERS ブロックコーデュロイショーツ BLACK
18865 PUNK DRUNKERS ブロックコーデュロイショーツ BEIGE
18867 PUNK DRUNKERS ブロックコーデュロイショーツ ENJI
19034 PUNK DRUNKERS 迷彩切替カーゴショーツ デジタルCAMO
19035 PUNK DRUNKERS 虫クライミングショーツ BEIGE
19914 PUNK DRUNKERS 宇宙人ショーツ
21287 PUNK DRUNKERS 熊ボアショーツ BROWN
21288 PUNK DRUNKERS 熊ボアショーツ CHARCOAL
24986 PUNK DRUNKERS 骨ジャンケン総柄ショーツ BLUE
25514 PUNK DRUNKERS 舌パン BLACK/BLUE
25515 PUNK DRUNKERS 舌パン BEIGE/BROWN
25516 PUNK DRUNKERS 舌パン NAVY/KHAKI
25517 PUNK DRUNKERS 舌パン KHAKI/RED
25518 PUNK DRUNKERS あいついっぱいショーツ カラフル
25519 PUNK DRUNKERS あいついっぱいショーツ BLUE
25520 PUNK DRUNKERS カレッジ風スウェットショーツ GRAY
25521 PUNK DRUNKERS カレッジ風スウェットショーツ NAVY
34443 PUNK DRUNKERS UCICショートパンツ BLUE
35005 PUNK DRUNKERS ギザロゴナイロンショーツ BLACK
35006 PUNK DRUNKERS ギザロゴナイロンショーツ KHAKI
39767 PUNK DRUNKERS 【PDSxワギャンランド】ワギャンランドショーツ BLACK
39768 PUNK DRUNKERS 【PDSxワギャンランド】ワギャンランドショーツ BEIGE
40522 PUNK DRUNKERS 猿Lスウェットショーツ M.GRAY