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-26 12:19:57')
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 120, 120
62689 PUNK DRUNKERS (パンクドランカーズ) アイツノニマスTEE - SUMI
60972 PUNK DRUNKERS SHARK.TEE - BLACK
60954 PUNK DRUNKERS [PDSx中華蕎麦とみ田]衣食TEE - BLACK
62666 PUNK DRUNKERS[PDSxCOCALERO]八福神TEE - D.GREEN
59937 PUNK DRUNKERS [PDSxSONIC]ソニック総柄TEE - BLACK
59938 PUNK DRUNKERS [PDSxSONIC]ソニック総柄TEE - LT.BLUE
64212 TOY MACHINE×PUNK DRUNKERS AITSU AND THE CHARACTERS SS TEE - WHITE
62664 PUNK DRUNKERS (パンクドランカーズ) [PDSxMetropolitanCROSSbottle]クロスTEE - S.BLUE
62663 PUNK DRUNKERS (パンクドランカーズ) [PDSxMetropolitanCROSSbottle]クロスTEE - BLACK
60969 PUNK DRUNKERS 切断アイツTEE - A.GREEN
60950 PUNK DRUNKERS [PDSxファミスタx阪神タイガース]ファミスタドランカーズTEE - WHITE
62688 PUNK DRUNKERS (パンクドランカーズ) アイツノニマスTEE - WHITE
60957 PUNK DRUNKERS [PDSxチャーミーちゃん]チャーミーちゃんとアイツBIG.TEE - LT.PINK
60955 PUNK DRUNKERS [PDSx中華蕎麦とみ田]衣食TEE - SLATE
60956 PUNK DRUNKERS [PDSxチャーミーちゃん]チャーミーちゃんとアイツBIG.TEE - BLACK
59939 PUNK DRUNKERS [PDSxGreatMUTA]タッグTEE - SUMI
59940 PUNK DRUNKERS [PDSxGreatMUTA]タッグTEE - D.H.NAVY
59124 PUNK DRUNKERS[PDSxPAC-MAN]GAMER.TEE - WHITE
59128 PUNK DRUNKERS[PDSx鬼越トマホーク]鬼越トマホーク刺繍TEE - WHITE
59129 PUNK DRUNKERS[PDSx鬼越トマホーク]鬼越トマホーク刺繍TEE - M.PURPLE
59134 PUNK DRUNKERS 鮫人パジャマTEE - D.YELLOW
59135 PUNK DRUNKERS 鮫人パジャマTEE - A.GREEN
59125 PUNK DRUNKERS[PDSxPAC-MAN]GAMER.TEE - C.BEIGE
58188 【予約商品】PUNK DRUNKERS [PDSxなかやまきんに君]パワーTEE - BLACK
58187 【予約商品】PUNK DRUNKERS [PDSxなかやまきんに君]パワーTEE - WHITE
58184 PUNK DRUNKERS [PDSxぷよぷよ]あいつぷよTEE - A.GREEN
58183 PUNK DRUNKERS [PDSxぷよぷよ]あいつぷよTEE - BLACK
58198 PUNK DRUNKERS [PDSxBLACK PEARLS]PDSロードTEE - BLACK
58199 PUNK DRUNKERS [PDSxBLACK PEARLS]PDSロードTEE - BLUE
58206 PUNK DRUNKERS 人間大砲ポケTEE - BLACK
58207 PUNK DRUNKERS 人間大砲ポケTEE - KHAKI
58193 PUNK DRUNKERS [PDSxHAOMING]半分TEE - WHITE
58218 PUNK DRUNKERS となりにアイツTEE - BLACK
56681 PUNK DRUNKERS PT.TEE - BLACK
58204 PUNK DRUNKERS タイダイマッポTEE - GREEN/YELLOW
58205 PUNK DRUNKERS タイダイマッポTEE - PINK/PURPLE
58212 PUNK DRUNKERS りんごTEE - WHITE
58213 PUNK DRUNKERS りんごTEE - BLACK
58224 【予約商品】PUNK DRUNKERS 3匹のクマTEE - WHITE
58225 【予約商品】PUNK DRUNKERS 3匹のクマTEE - LT.BLUE
58228 【予約商品】PUNK DRUNKERS 23周年TEE - BLACK
58229 【予約商品】PUNK DRUNKERS 23周年TEE - RED
56653 PUNK DRUNKERS [PDSxLAND by MILKBOY]ブラザーズTEE - BLACK
56654 PUNK DRUNKERS [PDSxLAND by MILKBOY]ブラザーズTEE - ASH
56655 PUNK DRUNKERS [PDSxLAND by MILKBOY]ブラザーズTEE - LT.GREEN
56671 PUNK DRUNKERS リアルあいつTEE - CORAL
56656 PUNK DRUNKERS [PDSxGODZILLA]ゴジラ総柄TEE'21 - WHITE
56609 PUNK DRUNKERS 大統領TEE - WHITE
56664 PUNK DRUNKERS グレイトフルマッポ刺繍TEE - GREEN
56665 PUNK DRUNKERS グレイトフルマッポ刺繍TEE - PURPLE
55809 PUNK DRUNKERS 顔コンペTEE'20 - WHITE
55810 PUNK DRUNKERS 顔コンペTEE'20 - SAND.KHAKI
54720 PUNK DRUNKERS JACKあいつBIG.TEE BLACK
54721 PUNK DRUNKERS JACKあいつBIG.TEE WHITE
54718 PUNK DRUNKERS なにわボーダーTEE 細ボーダー
54719 PUNK DRUNKERS なにわボーダーTEE 太ボーダー
55550 PUNK DRUNKERS AITSU.TEE WHITE
55551 PUNK DRUNKERS AITSU.TEE BLACK
54751 PUNK DRUNKERS イギリス人TEE BLACK
54738 PUNK DRUNKERS [PDSxKUDAN]PUNKUDAN式 ベアTEE WHITE
54739 PUNK DRUNKERS [PDSxKUDAN]PUNKUDAN式 ベアTEE GREEN
7545 PUNK DRUNKERS タイガーポケットTEE WHITE/PINK
10999 PUNK DRUNKERS 車のライトTEE MINT
11944 PUNK DRUNKERS xおぼっちゃまくん ちゃまごTEE B.GREEN
11948 PUNK DRUNKERS 秘密の集団TEE GREEN
11950 PUNK DRUNKERS O.F.TEE05.2014 LAVENDER
12703 PUNK DRUNKERS 驚愕ヒーローTEE WHITE/BLACK
12955 PUNK DRUNKERS NEED TEE WHITE
13314 PUNK DRUNKERS MADBALLSめーいっぱいTEE EMERALD
13316 PUNK DRUNKERS MADBALLSコミックTEE GRAY
15607 PUNK DRUNKERS ぐるぐるあいつTEE CHOCOLATE
15608 PUNK DRUNKERS O.F.TEE06.2015 BLACK
15609 PUNK DRUNKERS O.F.TEE06.2015 CHOCOLATE
15610 PUNK DRUNKERS O.F.TEE06.2015 BURGUNDY
16800 PUNK DRUNKERS 【PDSx四星球】 妖怪TEE FOREST
17557 PUNK DRUNKERS さかなTEE BLACK
17562 PUNK DRUNKERS スーパーヒーローTEE WHITE
17563 PUNK DRUNKERS スーパーヒーローTEE LIME
17886 PUNK DRUNKERS BIG BONUS TEE GRAY
18032 四星球 『もはや…』tour Tシャツ
18302 PUNK DRUNKERS あいつベアーTEE カラフル
18303 PUNK DRUNKERS あいつベアーTEE GREEN
18304 PUNK DRUNKERS 【PDSxおそ松くん】イヤミとあいつTEE WHI
18306 PUNK DRUNKERS 【PDSxUpset heroes!】Upset heroes!TEE
18310 PUNK DRUNKERS なまけものTEE P.GREEN
18862 PUNK DRUNKERS あいつ迷彩TEE WHITE
18871 PUNK DRUNKERS あいつ迷彩TEE BROWN
19037 PUNK DRUNKERS 横断歩道TEE BLACK
19038 PUNK DRUNKERS お茶漬けポケットTEE WHITE
19039 PUNK DRUNKERS 【PDSxデハラユキノリ】モーリンTEE BLUE
19040 PUNK DRUNKERS 【PDSxデハラユキノリ】モーリンTEE GRAY
19041 PUNK DRUNKERS 最先端TEE 2015 BLACK
19042 PUNK DRUNKERS 1つ目りすTEE BLACK
19043 PUNK DRUNKERS 1つ目りすTEE PURPLE
22303 PUNK DRUNKERS 誰でもあいつTEE ASH
22836 PUNK DRUNKERS 【PDSxROBOCOP】ロボコップあいつTEE BLACK
22837 PUNK DRUNKERS 【PDSxROBOCOP】ロボコップあいつTEE WHITE
22838 PUNK DRUNKERS 【PDSxZOLLMEN】合成人間TEE BLACK
22839 PUNK DRUNKERS 【PDSxZOLLMEN】合成人間TEE D.PURPLE
22840 PUNK DRUNKERS O.F.TEE08.2016 M.GRAY
22841 PUNK DRUNKERS O.F.TEE08.2016 BURGUNDY
22842 PUNK DRUNKERS O.F.TEE08.2016 EMERALD
22843 PUNK DRUNKERS O.F.08.2016ドルマンワンピース OATMEAL
22844 PUNK DRUNKERS O.F.08.2016ドルマンワンピース CHARCOAL
23388 PUNK DRUNKERS PDSx阪神タイガース 阪神ロゴTEE BLACK
23389 PUNK DRUNKERS PDSx阪神タイガース 阪神ロゴTEE S GRAY
23390 PUNK DRUNKERS PDSx阪神タイガースxキン肉マン 攻撃TEE YELLOW
23391 PUNK DRUNKERS PDSx阪神タイガースxキン肉マン 守備TEE CHARCOAL
23392 PUNK DRUNKERS PDSx阪神タイガースxキン肉マン 守備TEE YELLOW
23393 PUNK DRUNKERS PDSx阪神タイガースxキン肉マン 攻撃TEE CHARCOAL
23619 PUNK DRUNKERS 【PDSxHELLO KITTY】あいつハローキティTEE BLACK
23620 PUNK DRUNKERS 【PDSxHELLO KITTY】あいつハローキティTEE WHITE
23621 PUNK DRUNKERS 【PDSxこびとづかん】こびとどらんかーずTEE WHITE
23622 PUNK DRUNKERS 【PDSxこびとづかん】こびとどらんかーずTEE P.GREEN
23623 PUNK DRUNKERS ロング丈TEE BLACK
23624 PUNK DRUNKERS ロング丈TEE WHITE
23627 PUNK DRUNKERS 助けTEE WHITE
23628 PUNK DRUNKERS 助けTEE LT.ORANGE
24274 PUNK DRUNKERS 【PDSxキン肉マン】悪魔ん坊将軍TEE
24277 PUNK DRUNKERS スケートor大TEE BLACK