SELECT SQL_CALC_FOUND_ROWS 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 =392
)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-20 07:00:40')
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 p.update_date DESC
LIMIT 0, 25
68611 円谷プロ×PUNK DRUNKERS(パンクドランカーズ) ウルトラ怪獣JKT BLACK
13821 PUNK DRUNKERS 侵略者コーチJKT GREEN
13822 PUNK DRUNKERS 侵略者コーチJKT GRAY
15005 PUNK DRUNKERS TOMA-1
15199 PUNK DRUNKERS ミリタリーボアJKT OLIVE
15200 PUNK DRUNKERS ミリタリーボアJKT BLACK
15201 PUNK DRUNKERS ミリタリーボアJKT CAMO
15202 PUNK DRUNKERS 都会スタジャン 月
15203 PUNK DRUNKERS でかPコート BLACK/GRAY
15321 PUNK DRUNKERS X キン肉マン バッファローマンJKT BLACK
15322 PUNK DRUNKERS X キン肉マン バッファローマンJKT CAMO
15577 PUNK DRUNKERS 都会スタジャン
21283 PUNK DRUNKERS 地球外生命体コーチJKT
21386 PUNK DRUNKERS 壁ドンコート
21628 PUNK DRUNKERS エジプトボアJKT
21764 PUNK DRUNKERS 危ドカジャン
21783 PUNK DRUNKERS 【PDSxキン肉マン】キン肉マンスカジャン2015 NVY
21784 PUNK DRUNKERS 【PDSxキン肉マン】キン肉マンスカジャン2015 RED
22037 PUNK DRUNKERS モッズダウンコート BLACK
22038 PUNK DRUNKERS トゲトゲダッフルコート GRAY
22296 PUNK DRUNKERS エンブレムMA-1.JKT BLK
22367 PUNK DRUNKERS タコーチJKT BLACK
22368 PUNK DRUNKERS タコーチJKT WHITE
22734 PUNK DRUNKERS 恐竜JKT KHAKI
22735 PUNK DRUNKERS 恐竜JKT BLACK