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 =1
)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-25 19:23:22')
AND ( p.sales_end_datetime IS NULL AND p.deliv_date_id != 9 )
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, 60
69879 PUNK DRUNKERS(パンクドランカーズ) ピン抜くゲームTEE - WHITE
69889 PUNK DRUNKERS(パンクドランカーズ) 毒キノコTEE - S.PINK
69888 PUNK DRUNKERS(パンクドランカーズ) 毒キノコTEE - D.BLUE
69874 PUNK DRUNKERS(パンクドランカーズ) [PDSxチャーミーちゃん]遊泳禁止TEE - PURPLE
69873 PUNK DRUNKERS(パンクドランカーズ) [PDSxチャーミーちゃん]遊泳禁止TEE - BLACK
69871 PUNK DRUNKERS(パンクドランカーズ) [PDSxキン肉マン]ブラックホールTEE / REVIVAL - SLATE
69878 PUNK DRUNKERS(パンクドランカーズ) マイレコメンドポケTEE - S.BLUE
69877 PUNK DRUNKERS(パンクドランカーズ) マイレコメンドポケTEE - BLACK
69890 PUNK DRUNKERS(パンクドランカーズ) 超丸尾兄弟TEE - WHITE
69869 PUNK DRUNKERS(パンクドランカーズ) [PDSxたまごっち]世話しなすぎTEE - WHITE
69884 PUNK DRUNKERS(パンクドランカーズ) サメンチュの休日BIG.TEE - WHITE
69875 PUNK DRUNKERS(パンクドランカーズ) [PDSxBEER]着るBEER.TEE - BLACK
69895 PUNK DRUNKERS(パンクドランカーズ) ですメタルTEE - SUMI
69894 PUNK DRUNKERS(パンクドランカーズ) ですメタルTEE - BLACK
69892 PUNK DRUNKERS(パンクドランカーズ) ハードワーク突撃隊TEE - BLACK
69106 PUNK DRUNKERS(パンクドランカーズ)NEKOCATS.TEE'23 / REVIVAL BURGUNDY
69107 PUNK DRUNKERS(パンクドランカーズ)NEKOCATS.TEE'23 / REVIVAL BLACK
69109 PUNK DRUNKERS(パンクドランカーズ)サンドウィッチTEE'23 / REVIVAL SLATE
69108 PUNK DRUNKERS(パンクドランカーズ)サンドウィッチTEE'23 / REVIVAL BLACK
69110 PUNK DRUNKERS(パンクドランカーズ)般若スケボーTEE'23 / REVIVAL D.GREEN
69111 PUNK DRUNKERS(パンクドランカーズ)般若スケボーTEE'23 / REVIVAL SUMI
69112 PUNK DRUNKERS(パンクドランカーズ)ABCDTEE'23 / REVIVAL WHITE
69113 PUNK DRUNKERS(パンクドランカーズ)ABCDTEE'23 / REVIVAL BLACK
69101 PUNK DRUNKERS(パンクドランカーズ)美少女TEE'23 / REVIVAL B.PURPLE
69103 PUNK DRUNKERS(パンクドランカーズ)美少女TEE'23 / REVIVAL BLACK
67664 PUNK DRUNKERS(パンクドランカーズ)アイツ大佐TEE - RED
67665 PUNK DRUNKERS(パンクドランカーズ)アイツ大佐TEE - SUMI
67655 PUNK DRUNKERS(パンクドランカーズ)アニメ少女TEE - S.BLUE
67654 PUNK DRUNKERS(パンクドランカーズ)アニメ少女TEE - BLACK
67644 PUNK DRUNKERS(パンクドランカーズ)コミカルブラザーズBIG.TEE - S.PURPLE
67643 PUNK DRUNKERS(パンクドランカーズ)コミカルブラザーズBIG.TEE - BLACK
67628 PUNK DRUNKERS(パンクドランカーズ)[PDSx賭博黙示録カイジ]ざわざわTEE - SLATE
67627 PUNK DRUNKERS(パンクドランカーズ)[PDSx賭博黙示録カイジ]ざわざわTEE - BLACK
67629 PUNK DRUNKERS(パンクドランカーズ)[PDSx賭博破戒録カイジ]大博奕TEE - SUMI
67635 PUNK DRUNKERS(パンクドランカーズ)ポケットからレシートTEE - BLACK
67632 PUNK DRUNKERS(パンクドランカーズ)[PDSx谷口崇]あいつ熊と蜂TEE - H.BLACK
67661 PUNK DRUNKERS(パンクドランカーズ)0089.TEE - BLACK
67653 PUNK DRUNKERS(パンクドランカーズ)縛りTEE - PURPLE
67652 PUNK DRUNKERS(パンクドランカーズ)縛りTEE - BLACK
64214 TOY MACHINE×PUNK DRUNKERS AITSU AND SECT YING YANG SS TEE - WHITE
64216 TOY MACHINE×PUNK DRUNKERS AITSU AND TOYMONSTER IN TURTLE HEAD SS TEE - WHITE
64217 TOY MACHINE×PUNK DRUNKERS AITSU AND TOYMONSTER IN TURTLE HEAD SS TEE - SAND
64218 TOY MACHINE×PUNK DRUNKERS SECT FROM AITSU SS TEE - WHITE
64219 TOY MACHINE×PUNK DRUNKERS SECT FROM AITSU SS TEE - BLACK
67641 PUNK DRUNKERS(パンクドランカーズ)PDS冒険TEE - BLACK
67623 PUNK DRUNKERS(パンクドランカーズ)[PDSxみんなのたあ坊]バンドTEE - BLACK
67656 PUNK DRUNKERS(パンクドランカーズ)昆虫採集TEE - WHITE
67659 PUNK DRUNKERS(パンクドランカーズ)妖怪集合TEE - PURPLE
67631 PUNK DRUNKERS(パンクドランカーズ)[PDSx谷口崇]あいつ熊と蜂TEE - WHITE
67660 PUNK DRUNKERS(パンクドランカーズ)0089.TEE - WHITE
66042 PUNK DRUNKERS (パンクドランカーズ) ゆーれーTEE - BLACK
66043 PUNK DRUNKERS (パンクドランカーズ) ゆーれーTEE - PURPLE
66040 PUNK DRUNKERS (パンクドランカーズ) 13日以外禁止TEE - BLACK
66032 PUNK DRUNKERS (パンクドランカーズ) ウーパーアイーツTEE - BLACK
66047 PUNK DRUNKERS (パンクドランカーズ) お米の人TEE - BLACK
66046 PUNK DRUNKERS (パンクドランカーズ) お米の人TEE - WHITE
66031 PUNK DRUNKERS (パンクドランカーズ) あいつを探せTEE - LT.YELLOW
66030 PUNK DRUNKERS (パンクドランカーズ) あいつを探せTEE - WHITE
64445 PUNK DRUNKERS [PDSx高須クリニック]院長フォトTEE - BLACK
64444 PUNK DRUNKERS [PDSx高須クリニック]院長フォトTEE - WHITE