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 =17
)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-03-29 20:21:36')
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, 75
71018 【予約商品】PUNK DRUNKERS コンピューターCAP - BLACK
71019 【予約商品】PUNK DRUNKERS コンピューターCAP - GRAY
69899 PUNK DRUNKERS(パンクドランカーズ) 北極あいつCAP - NAVY
69898 PUNK DRUNKERS(パンクドランカーズ) 北極あいつCAP - BLACK
66053 PUNK DRUNKERS (パンクドランカーズ) 肉P.CAP - NAVY
66055 PUNK DRUNKERS (パンクドランカーズ) アイツちゃんCAP - LT.YELLOW
66054 PUNK DRUNKERS (パンクドランカーズ) アイツちゃんCAP - BLACK
64448 PUNK DRUNKERS おねだん異常コーデュロイCAP - NAVY
64220 TOY MACHINE×PUNK DRUNKERS AITSU AND SECT YING YANG MESH CAP - BLACK
59948 PUNK DRUNKERS CAPのCAP - LT.BLUE
59947 PUNK DRUNKERS CAPのCAP - BLACK
59136 PUNK DRUNKERS [PDSxPAC-MAN]GAMER.CAP - BLACK
58232 PUNK DRUNKERS メタルロゴCAP - BLACK
58230 PUNK DRUNKERS スーパーPDSジェットCAP - BLACK
56682 PUNK DRUNKERS [PDSxGODZILLA]メカゴジラCAP - BLACK
56684 PUNK DRUNKERS ユル鮫人CAP - BLACK
54869 PUNK DRUNKERS 宇宙人スケボーCAP - BLACK
54870 PUNK DRUNKERS 宇宙人スケボーCAP - H.GRAY
10688 PUNK DRUNKERS B.B.CAP RED/BLACK
20432 PUNK DRUNKERS ブランドチックCAP BLACK
20433 PUNK DRUNKERS ブランドチックCAP BLUE
20434 PUNK DRUNKERS 王CAP BLACK/RED
20435 PUNK DRUNKERS あいつ目CAP CHARCOAL
20436 PUNK DRUNKERS あいつ目CAP GRAY
20437 PUNK DRUNKERS 耳に鉛筆ニットCAP BLACK
20438 PUNK DRUNKERS 耳に鉛筆ニットCAP ENJI
20439 PUNK DRUNKERS 耳に鉛筆ニットCAP MASTARD
22304 PUNK DRUNKERS KY CAP NAVY
22305 PUNK DRUNKERS KY CAP GRAY
22306 PUNK DRUNKERS ドット幽霊CAP BLUE
22307 PUNK DRUNKERS ドット幽霊CAP BLACK
22308 PUNK DRUNKERS ドット幽霊CAP NAVY
22371 PUNK DRUNKERS 竹とん帽ハット BLACK
24282 PUNK DRUNKERS 【PDSxキン肉マン】悪魔将軍CAP BLACK
24620 PUNK DRUNKERS PUNK DRUNKバケットハット BLUE
24621 PUNK DRUNKERS PUNK DRUNKバケットハット LT.BLUE
24987 PUNK DRUNKERS PKDSメッシュCAP BLACK/WHITE
24988 PUNK DRUNKERS PKDSメッシュCAP GRAY
25529 PUNK DRUNKERS ゲームボーシ BLACK/BLUE
25530 PUNK DRUNKERS ゲームボーシ GRAY/BLACK
28503 PUNK DRUNKERS ドクターPUNKDメッシュCAP BLACK
28504 PUNK DRUNKERS ドクターPUNKDメッシュCAP RED
28506 PUNK DRUNKERS ドクターPUNKDメッシュCAP WHITE/NAVY
28518 PUNK DRUNKERS P.CAP NAVY
28519 PUNK DRUNKERS P.CAP GRAY
28521 PUNK DRUNKERS PUN-Kds.CAP BLACK
28522 PUNK DRUNKERS PUN-Kds.CAP LT.BLUE
29930 PUNK DRUNKERS ゾンビCAP PINK
29931 PUNK DRUNKERS ゾンビCAP BLACK
29932 PUNK DRUNKERS ゾンビCAP BEIGE
29933 PUNK DRUNKERS PDSxKNAVE タグロゴCAP BLACK
29934 PUNK DRUNKERS PDSxKNAVE タグロゴCAP NAVY
32064 PUNK DRUNKERS アイツップルCAP BLACK
32066 PUNK DRUNKERS 酔CAP NAVY
32473 PUNK DRUNKERS (パンクドランカーズ) シースーCAP NAVY
32474 PUNK DRUNKERS (パンクドランカーズ) シースーCAP BEIGE
32475 PUNK DRUNKERS (パンクドランカーズ) シースーCAP LT.PINK
33504 PUNK DRUNKERS (パンクドランカーズ) ドランクBB.CAP BLACK
33505 PUNK DRUNKERS (パンクドランカーズ) ドランクBB.CAP GRAY
34138 PUNK DRUNKERS さかさまメッシュCAP BLACK
34139 PUNK DRUNKERS さかさまメッシュCAP NAVY
35010 PUNK DRUNKERS さかなナイロンジェットCAP BLUE
35011 PUNK DRUNKERS さかなナイロンジェットCAP BLACK
35012 PUNK DRUNKERS 出刃CAP GRAY
35013 PUNK DRUNKERS 出刃CAP ORANGE
36322 PUNK DRUNKERS 虎ドットCAP BLACK
36323 PUNK DRUNKERS 虎ドットCAP NAVY
39435 PUNK DRUNKERS 89禁CAP BLACK
39436 PUNK DRUNKERS 89禁CAP BEIGE
39492 PUNK DRUNKERS ポリエステルCAP BLACK/D.GREEN
39493 PUNK DRUNKERS ポリエステルCAP NAVY/KHAKI
40761 PUNK DRUNKERS 元ヤンメッシュCAP BLACK
40762 PUNK DRUNKERS 元ヤンメッシュCAP NAVY
40763 PUNK DRUNKERS 元ヤンメッシュCAP WHITE/BALCK
40764 PUNK DRUNKERS PDナイロンCAP WHITE