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 =62
)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-28 02:10:01')
AND pc.price02 > 909
AND price02 <= 2727
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 0, 25
31698 PUNK DRUNKERS あいつちゃん耳あて BLACK
31699 PUNK DRUNKERS あいつちゃん耳あて RED
29936 PUNK DRUNKERS リバーシブルネックウォーマー GRAY
29937 PUNK DRUNKERS リバーシブルネックウォーマー GREEN/BLUE
43208 PUNK DRUNKERS 【PDSxキン肉マンx430】ケンダマンけん玉 RED
43209 PUNK DRUNKERS 【PDSxキン肉マンx430】ケンダマンけん玉 SILVER
24708 PUNK DRUNKERS 【PDSxTREST】モバイルバッテリー 花の妖精
24828 PUNK DRUNKERS 【PDSxTREST】モバイルバッテリー あいつ
24834 PUNK DRUNKERS 【PDSx円谷プロxTREST】New iPhone case 手帳型 BLACK
24835 PUNK DRUNKERS 【PDSx円谷プロxTREST】New iPhone case 手帳型 WHITE
24836 PUNK DRUNKERS 【PDSxTREST】 NewipPhonecase 6/6s もつ
25010 PUNK DRUNKERS 【PDSxTREST】 NewipPhonecase 6/6s 般若
25011 PUNK DRUNKERS 【PDSxTREST】 NewipPhonecase 6/6s 電気屋
25296 PUNK DRUNKERS 【PDSx円谷プロxTREST】New Android case 手帳型 BLACK
25297 PUNK DRUNKERS 【PDSx円谷プロxTREST】New Android case 手帳型 WHITE
15204 PUNK DRUNKERS あいつキーキャップ BLACK
55813 PUNK DRUNKERS PDS総柄マスク / MIX総柄 - MIX総柄
55815 PUNK DRUNKERS PDS総柄マスク / ゲーマー - ゲーマー
55816 PUNK DRUNKERS PDS総柄マスク / 常夏 - 常夏
55817 PUNK DRUNKERS PDS総柄マスク / Pd - Pd
56717 PUNK DRUNKERS PDS総柄マスク / 電気屋 - 電気屋
56718 PUNK DRUNKERS PDS総柄マスク / にっとっと - にっとっと
56719 PUNK DRUNKERS PDS総柄マスク / ニャー - ニャー
56720 PUNK DRUNKERS PDS総柄マスク / 虫 - 虫
56721 PUNK DRUNKERS PDS総柄マスク / ワニ - ワニ