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 =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-03-29 10:35:50')
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 0, 60
69846 PUNK DRUNKERS(パンクドランカーズ) ChantPDS.BIGパーカ - S.GREEN
69845 PUNK DRUNKERS(パンクドランカーズ) ChantPDS.BIGパーカ - BLACK
69848 PUNK DRUNKERS(パンクドランカーズ) 必需品BIGパーカ - BEIGE
69847 PUNK DRUNKERS(パンクドランカーズ) 必需品BIGパーカ - BLACK
69838 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - M.GRAY
69839 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - BLUE
69837 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - BLACK
68645 PUNK DRUNKERS(パンクドランカーズ)[PDSxBLACK PEARLS]集合BIGパーカ - BLACK
68652 PUNK DRUNKERS(パンクドランカーズ)PXDXパーカ - M.GRAY
68651 PUNK DRUNKERS(パンクドランカーズ)PXDXパーカ - BLACK
69197 PUNK DRUNKERS(パンクドランカーズ) CAT'S BIGパーカ S.GREEN
69196 PUNK DRUNKERS(パンクドランカーズ) CAT'S BIGパーカ BLACK
65998 PUNK DRUNKERS (パンクドランカーズ) サイクリングパーカ - BLACK
66002 PUNK DRUNKERS (パンクドランカーズ) グレイトフルアイツパーカ - BLACK
64414 PUNK DRUNKERS お金はないパーカー - BLACK
64406 PUNK DRUNKERS [ボンバーマンxPDS]ボンバーマン刺繍パーカー - BLACK
64407 PUNK DRUNKERS [ボンバーマンxPDS]ボンバーマン刺繍パーカー - BEIGE
64408 PUNK DRUNKERS [PDSx高須クリニック]高須ボックスロゴパーカー - BLACK
64409 PUNK DRUNKERS [PDSx高須クリニック]高須ボックスロゴパーカー - M.GRAY
60929 PUNK DRUNKERS [PDSx太鼓の達人]パーカーだドン!パーカー - LT.BLUE
60928 PUNK DRUNKERS [PDSx太鼓の達人]パーカーだドン!パーカー - BLACK
59903 PUNK DRUNKERS [PDSxSONIC]ソニックパーカ - BLACK
59904 PUNK DRUNKERS [PDSxSONIC]ソニックパーカ - BLUE
59907 PUNK DRUNKERS [PDSxCOCALERO]コカボムあいつパーカー - BLACK
59911 PUNK DRUNKERS スーパーアイツキラシールパーカー - BLACK
56633 PUNK DRUNKERS 骨ジャンケンパーカ - BLACK
56634 PUNK DRUNKERS 骨ジャンケンパーカ - PURPLE
56637 PUNK DRUNKERS スピーカーパーカ - BLACK
56638 PUNK DRUNKERS スピーカーパーカ - M.GRAY
54840 PUNK DRUNKERS 監視パーカ - BLACK
54841 PUNK DRUNKERS 監視パーカ - M.GRAY
54830 PUNK DRUNKERS UMAパーカ - BLACK/BLUE
54831 PUNK DRUNKERS UMAパーカ - PURPLE/YELLOW
54832 PUNK DRUNKERS メニメニプリントパーカ - BLACK
54843 PUNK DRUNKERS 宇宙人スケボーパーカ - NAVY
54842 PUNK DRUNKERS 宇宙人スケボーパーカ - M.GRAY
15192 PUNK DRUNKERS 300ミリオンパーカ PURPLE
20218 PUNK DRUNKERS ボスキャラアイツパーカ BLACK
20426 PUNK DRUNKERS 【PDSxCASPER】キャスパーカ BLACK
20427 PUNK DRUNKERS 【PDSxCASPER】キャスパーカ NAVY
20429 PUNK DRUNKERS YUTORIパーカ BURGUNDY
21286 PUNK DRUNKERS レントゲンパーカ
21384 PUNK DRUNKERS トゲトゲパーカ BLACK
21385 PUNK DRUNKERS トゲトゲパーカ LT.GRAY
21770 PUNK DRUNKERS 【PDSxHELLO KITTY】あいつキティパーカ BLACK
21771 PUNK DRUNKERS 【PDSxHELLO KITTY】あいつキティパーカ GRAY
21773 PUNK DRUNKERS NEKOCATSパーカ BLUE
22298 PUNK DRUNKERS ワンワンパーカ IVY GREEN
22738 PUNK DRUNKERS 星いっぱいパーカ WHITE
22739 PUNK DRUNKERS 星いっぱいパーカ GRAY
23384 PUNK DRUNKERS ムカデロングパーカ WHITE
23385 PUNK DRUNKERS ムカデロングパーカ BLACK
28322 PUNK DRUNKERS さかなパーカ BLACK
28323 PUNK DRUNKERS さかなパーカ WHITE
28324 PUNK DRUNKERS さかなパーカ BURGUNDY
28325 PUNK DRUNKERS ターゲットパーカ GRAY
28326 PUNK DRUNKERS ターゲットパーカ BLACK
28329 PUNK DRUNKERS DVDパーカ V.GRAY
28963 PUNK DRUNKERS 三段ポケロングパーカ GRAY
28964 PUNK DRUNKERS 三段ポケロングパーカ BLACK