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 =1
)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-26 06:11:10')
AND pc.classcategory_id1 IN( 14,61,35)
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
62690 PUNK DRUNKERS (パンクドランカーズ) アーポくんTEE - ASH
60951 PUNK DRUNKERS [PDSxファミスタx阪神タイガース]ファミスタドランカーズTEE - BLACK
60973 PUNK DRUNKERS SHARK.TEE - ASH
60976 PUNK DRUNKERS PUNKS BAND.TEE - BLACK
60977 PUNK DRUNKERS PUNKS BAND.TEE - SUMI
62691 PUNK DRUNKERS (パンクドランカーズ) アーポくんTEE - SUMI
62692 PUNK DRUNKERS (パンクドランカーズ) あいつ遊泳TEE - WHITE
62694 PUNK DRUNKERS 餅つきTEE - BLACK
62695 PUNK DRUNKERS 餅つきTEE - BLUE
62711 PUNK DRUNKERS べちゃロゴTEE / O.Fシリーズ - BLUE
62712 PUNK DRUNKERS べちゃロゴTEE / O.Fシリーズ - A.GREEN
62677 PUNK DRUNKERS (パンクドランカーズ) サスペンダーTEE - WHITE
62678 PUNK DRUNKERS (パンクドランカーズ) サスペンダーTEE - BLACK
62684 PUNK DRUNKERS (パンクドランカーズ) カミナリBIG.TEE - BLACK
62686 PUNK DRUNKERS (パンクドランカーズ) うさちゃんBIG.TEE - D.BLUE
62687 PUNK DRUNKERS (パンクドランカーズ) うさちゃんBIG.TEE - LT.PINK
60952 PUNK DRUNKERS [PDSx太鼓の達人]太鼓マスターTEE - SUMI
64444 PUNK DRUNKERS [PDSx高須クリニック]院長フォトTEE - WHITE
64445 PUNK DRUNKERS [PDSx高須クリニック]院長フォトTEE - BLACK
62669 PUNK DRUNKERS (パンクドランカーズ) タイダイきのこTEE - RED
64442 PUNK DRUNKERS x TOY MACHINE 組体操TEE - SUMI
60968 PUNK DRUNKERS 切断アイツTEE - S.BEIGE
60969 PUNK DRUNKERS 切断アイツTEE - A.GREEN
60972 PUNK DRUNKERS SHARK.TEE - BLACK
62688 PUNK DRUNKERS (パンクドランカーズ) アイツノニマスTEE - WHITE