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 05:46:03')
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 半魚人ステッカー
17896 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 わんわん ステッカー
32062 PUNK DRUNKERS あいつクロスハンカチ REDチェック
32063 PUNK DRUNKERS あいつクロスハンカチ GREENチェック
31703 PUNK DRUNKERS PDSアクリルキーホルダー クマ
31704 PUNK DRUNKERS PDSアクリルキーホルダー あいつ
40516 PUNK DRUNKERS メタル風ロゴ ステッカー BLUE
19915 PUNK DRUNKERS パンクドICカードステッカー A set
19917 PUNK DRUNKERS パンクドICカードステッカー C set
24630 PUNK DRUNKERS ハイやねんクージー BLACK
24631 PUNK DRUNKERS ハイやねんクージー GREEN
45208 PUNK DRUNKERS PDSはんかち / カラフルうんこ RED
45209 PUNK DRUNKERS PDSはんかち / カラフルうんこ PURPLE
54935 PUNK DRUNKERS ステッカー / 宇宙人スケボー - GREEN