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 =332
)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-30 23:43:38')
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
22315 PUNK DRUNKERS まるパ ステッカー
22313 PUNK DRUNKERS 半魚人ステッカー
22312 PUNK DRUNKERS まるロゴ ステッカー
22314 PUNK DRUNKERS クマさんステッカー
35302 PUNK DRUNKERS PDSキャラクターシール
40511 PUNK DRUNKERS 危険坊や ステッカー
40535 PUNK DRUNKERS 【PDSx野性爆弾くっきー】 くっきーはあいつステッカー
40508 PUNK DRUNKERS あいつフォーチューン ステッカー
40509 PUNK DRUNKERS PDSキャラクターシール ポーピーさん
40512 PUNK DRUNKERS ベロPKDS ステッカー RED
40754 PUNK DRUNKERS 【PDSx montage】モンタージュステッカー BLACK
40972 PUNK DRUNKERS わんわん ステッカー
40516 PUNK DRUNKERS メタル風ロゴ ステッカー BLUE
19915 PUNK DRUNKERS パンクドICカードステッカー A set
19917 PUNK DRUNKERS パンクドICカードステッカー C set
54935 PUNK DRUNKERS ステッカー / 宇宙人スケボー - GREEN
54936 PUNK DRUNKERS ステッカー / 宇宙人スケボー - BLUE
54937 PUNK DRUNKERS ステッカー / 鮫人 - RED
54938 PUNK DRUNKERS ステッカー / 鮫人 - NAVY
68720 PUNK DRUNKERS(パンクドランカーズ)ステッカー / 飛び出しあいつ - P.ORANGE
68721 PUNK DRUNKERS(パンクドランカーズ)ステッカー / 飛び出しあいつ - RED
69114 PUNK DRUNKERS (パンクドラカーズ) 飛び出しあいつ ステッカー P.ORANGE
69115 PUNK DRUNKERS(パンクドランカーズ) 飛び出しあいつ ステッカー RED
59981 PUNK DRUNKERS [PDSxCOCALERO]コカボムあいつステッカー - GREEN/ORANGE
40505 PUNK DRUNKERS PDSキャラクターシール セバスチャン