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 dtb_products AS p
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 01:27:06')
AND pc.stock > 0
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 25, 25
69457 PUNK DRUNKERS (パンクドランカーズ) 花ハーフジップトレーナー BLACK
68645 PUNK DRUNKERS(パンクドランカーズ)[PDSxBLACK PEARLS]集合BIGパーカ - BLACK
67608 PUNK DRUNKERS(パンクドランカーズ)PDS CARDシャツ - BLACK
67609 PUNK DRUNKERS(パンクドランカーズ)PDS CARDシャツ - KHAKI
67619 PUNK DRUNKERS(パンクドランカーズ)PUNKDバスパン - GREEN
67620 PUNK DRUNKERS(パンクドランカーズ)PUNKDバスパン - PURPLE
69853 PUNK DRUNKERS(パンクドランカーズ) Wダメージトレーナー - BLACK
69854 PUNK DRUNKERS(パンクドランカーズ) Wダメージトレーナー - D.GREEN
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
69837 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - BLACK
69838 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - M.GRAY
69839 PUNK DRUNKERS(パンクドランカーズ)IEGIパーカ - BLUE
69849 PUNK DRUNKERS(パンクドランカーズ) [PDSxBLACK PEARLS]バスケ部トレーナー - M.GRAY
69850 PUNK DRUNKERS(パンクドランカーズ) [PDSxBLACK PEARLS]バスケ部トレーナー - BLACK
68657 PUNK DRUNKERS(パンクドランカーズ)P&D'sトレーナー - M.GRAY
68658 PUNK DRUNKERS(パンクドランカーズ)P&D'sトレーナー - S.BLUE
70968 PUNK DRUNKERS ネコとネズミのナイロンパンツ - BLACK
70969 PUNK DRUNKERS ネコとネズミのナイロンパンツ - CAMO
69840 PUNK DRUNKERS(パンクドランカーズ)IEGIスウェットパンツ - BLACK
69841 PUNK DRUNKERS(パンクドランカーズ)IEGIスウェットパンツ - M.GRAY
69842 PUNK DRUNKERS(パンクドランカーズ)IEGIスウェットパンツ - BLUE