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 =6
)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 09:41:56')
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
LIMIT 0, 25
14460 PUNK DRUNKERS プリントいっぱいシャツ WHITE
17878 PUNK DRUNKERS 指シャツ
21285 PUNK DRUNKERS 蛇拳デニムシャツ
21785 PUNK DRUNKERS カーネルシャツ BW/GRAY
21786 PUNK DRUNKERS カーネルシャツ BLUE/NAVY
22736 PUNK DRUNKERS 虎ディショナルシャツ WHITE
22737 PUNK DRUNKERS 虎ディショナルシャツ GRAY
22825 PUNK DRUNKERS ロング丈半袖シャツ BLACK
22826 PUNK DRUNKERS ブロックシャツ BLACK/GRAY
22827 PUNK DRUNKERS ブロックシャツ WHITE/NAVY
22828 PUNK DRUNKERS PDS陰陽半袖シャツ BLACK/WHITE
23379 PUNK DRUNKERS フットボール風7分シャツ WHITE/NAVY
23380 PUNK DRUNKERS フットボール風7分シャツ BLACK/WHITE
28954 PUNK DRUNKERS カメネルシャツ BLUE
28955 PUNK DRUNKERS カメネルシャツ ORANGE
28956 PUNK DRUNKERS カメネルシャツ RED
28957 PUNK DRUNKERS カメネルシャツ PURPLE
29068 PUNK DRUNKERS ドロドロングシャツ長袖 BLACKチェック
29069 PUNK DRUNKERS ドロドロングシャツ長袖 BLUEチェック
29608 PUNK DRUNKERS 【PDSx円谷プロ】メトロン星人デニムシャツ ONE-W
29609 PUNK DRUNKERS 【PDSx円谷プロ】メトロン星人デニムシャツ USED
32538 PUNK DRUNKERS あいつクロス切替シャツ BLACK
32539 PUNK DRUNKERS あいつクロス切替シャツ NAVY
36120 PUNK DRUNKERS キツネルシャツ - GREENチェック
36121 PUNK DRUNKERS キツネルシャツ - REDチェック