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-03-29 23:24: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 MAX(price02)
LIMIT 0, 25
21634 PUNK DRUNKERS 【PDSxBETONES】ボクサーパンツ illusion
9094 PUNK DRUNKERS バズーカーパンツ CAMO
59895 PUNK DRUNKERS 樹パンツ - BLACK
59896 PUNK DRUNKERS 樹パンツ - BEIGE
21289 PUNK DRUNKERS パンツスウェット
14455 PUNK DRUNKERS 切替ピチパン SILVER.GLAY
24985 PUNK DRUNKERS 骨ジャンケン総柄ショーツ BLACK
25288 PUNK DRUNKERS イージーDOパンツ NAVY
25289 PUNK DRUNKERS イージーDOパンツ ASH
60927 PUNK DRUNKERS あいつ目オーバーオール - BROWN
36140 PUNK DRUNKERS NEETスウェットパンツ - BLACK
36141 PUNK DRUNKERS NEETスウェットパンツ - M.GRAY
10466 PUNK DRUNKERS 幼虫クロップドパンツ BEIGE
10467 PUNK DRUNKERS 幼虫クロップドパンツ BLACK
45038 PUNK DRUNKERS つパンツ BLACK
45106 PUNK DRUNKERS ファーザーラインパンツ BLACK
18866 PUNK DRUNKERS ブロックコーデュロイショーツ GREEN
28960 PUNK DRUNKERS スワットパンツ GRAY
28961 PUNK DRUNKERS スワットパンツ BLACK
29076 PUNK DRUNKERS ギザロゴピチパン BLACK
36137 PUNK DRUNKERS ニュージャージ州(下) - NAVY
39760 PUNK DRUNKERS 【PDSx仮面ライダー】ライダージャージ下 BLACK/WHITE
39761 PUNK DRUNKERS 【PDSx仮面ライダー】ライダージャージ下 BLACK/RED
39951 PUNK DRUNKERS レギンス重ね着風ショーツ BLACK
44126 PUNK DRUNKERS 前後デニム 前INDIGO