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-04-20 03:07:06')
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, 25
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