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 =588
)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 22:37:47')
AND ( p.sales_end_datetime IS NULL AND p.deliv_date_id != 9 )
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) DESC
LIMIT 0, 60
59904 PUNK DRUNKERS [PDSxSONIC]ソニックパーカ - BLUE
54830 PUNK DRUNKERS UMAパーカ - BLACK/BLUE
54831 PUNK DRUNKERS UMAパーカ - PURPLE/YELLOW
50455 PUNK DRUNKERS トゲトゲBIGパーカ PINK
50456 PUNK DRUNKERS トゲトゲBIGパーカ BLACK
64407 PUNK DRUNKERS [ボンバーマンxPDS]ボンバーマン刺繍パーカー - BEIGE
68645 PUNK DRUNKERS(パンクドランカーズ)[PDSxBLACK PEARLS]集合BIGパーカ - BLACK
36150 PUNK DRUNKERS 【PDSxPAC-MAN】パックマンパーカ - BLACK
45025 PUNK DRUNKERS [PDSxMAPPY]マッピーパーカ N.ORANGE
69196 PUNK DRUNKERS(パンクドランカーズ) CAT'S BIGパーカ BLACK
69197 PUNK DRUNKERS(パンクドランカーズ) CAT'S BIGパーカ S.GREEN
69845 PUNK DRUNKERS(パンクドランカーズ) ChantPDS.BIGパーカ - BLACK
69846 PUNK DRUNKERS(パンクドランカーズ) ChantPDS.BIGパーカ - S.GREEN
69847 PUNK DRUNKERS(パンクドランカーズ) 必需品BIGパーカ - BLACK
69848 PUNK DRUNKERS(パンクドランカーズ) 必需品BIGパーカ - BEIGE
54832 PUNK DRUNKERS メニメニプリントパーカ - BLACK
68651 PUNK DRUNKERS(パンクドランカーズ)PXDXパーカ - BLACK
68652 PUNK DRUNKERS(パンクドランカーズ)PXDXパーカ - M.GRAY
69837 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - BLACK
69838 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - M.GRAY
69839 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - BLUE
59911 PUNK DRUNKERS スーパーアイツキラシールパーカー - BLACK
59907 PUNK DRUNKERS [PDSxCOCALERO]コカボムあいつパーカー - BLACK
60929 PUNK DRUNKERS [PDSx太鼓の達人]パーカーだドン!パーカー - LT.BLUE
50169 PUNK DRUNKERS [PDSxPEACEMAKER]少林寺パーカ BLACK
50170 PUNK DRUNKERS [PDSxPEACEMAKER]少林寺パーカ RED
50804 PUNK DRUNKERS [PDSxTOY MACHINE]MONSTERxあいつパーカ BLACK
50805 PUNK DRUNKERS [PDSxTOY MACHINE]MONSTERxあいつパーカ M.GRAY
51236 TOY MACHINE×PUNK DRUNKERS TOY DRUNKERS SWEAT PARKA - BLACK
51237 TOY MACHINE×PUNK DRUNKERS TOY DRUNKERS SWEAT PARKA - WHITE
54840 PUNK DRUNKERS 監視パーカ - BLACK
54841 PUNK DRUNKERS 監視パーカ - M.GRAY
54842 PUNK DRUNKERS 宇宙人スケボーパーカ - M.GRAY
54843 PUNK DRUNKERS 宇宙人スケボーパーカ - NAVY
56633 PUNK DRUNKERS 骨ジャンケンパーカ - BLACK
56634 PUNK DRUNKERS 骨ジャンケンパーカ - PURPLE
44336 PUNK DRUNKERS VIP PASSパーカ BLACK
52601 PUNK DRUNKERS 手足がフォントパーカ GRAY
52602 PUNK DRUNKERS 手足がフォントパーカ PURPLE
56637 PUNK DRUNKERS スピーカーパーカ - BLACK
56638 PUNK DRUNKERS スピーカーパーカ - M.GRAY
44338 PUNK DRUNKERS メタルロゴパーカ BLACK
28326 PUNK DRUNKERS ターゲットパーカ BLACK
36154 PUNK DRUNKERS モアイパーカ - SUMI
39426 PUNK DRUNKERS カッパスポーティーパーカ WHITE
23384 PUNK DRUNKERS ムカデロングパーカ WHITE
23385 PUNK DRUNKERS ムカデロングパーカ BLACK
64406 PUNK DRUNKERS [ボンバーマンxPDS]ボンバーマン刺繍パーカー - BLACK
64408 PUNK DRUNKERS [PDSx高須クリニック]高須ボックスロゴパーカー - BLACK
64409 PUNK DRUNKERS [PDSx高須クリニック]高須ボックスロゴパーカー - M.GRAY
28963 PUNK DRUNKERS 三段ポケロングパーカ GRAY
28964 PUNK DRUNKERS 三段ポケロングパーカ BLACK
36151 PUNK DRUNKERS 【PDSxPAC-MAN】パックマンパーカ - M.GRAY
36152 PUNK DRUNKERS 【PDSx阪神タイガース】阪神パーカ - BLACK
36153 PUNK DRUNKERS 【PDSx阪神タイガース】阪神パーカ - M.GRAY
45024 PUNK DRUNKERS [PDSxMAPPY]マッピーパーカ M.GRAY
29070 PUNK DRUNKERS 【PDSxHAOMING】マスクあいつパーカ ONE-W
65998 PUNK DRUNKERS (パンクドランカーズ) サイクリングパーカ - BLACK
66002 PUNK DRUNKERS (パンクドランカーズ) グレイトフルアイツパーカ - BLACK
64414 PUNK DRUNKERS お金はないパーカー - BLACK