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 =96
)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 03:12:13')
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
69829 PUNK DRUNKERS(パンクドランカーズ) わざとダメージデニムパンツ - INDIGO
69841 PUNK DRUNKERS(パンクドランカーズ)IEGIスウェットパンツ - M.GRAY
69842 PUNK DRUNKERS(パンクドランカーズ)IEGIスウェットパンツ - BLUE
69840 PUNK DRUNKERS(パンクドランカーズ)IEGIスウェットパンツ - BLACK
70218 MILKBOYxPUNK DRUNKERS(パンクドランカーズ) 宇宙人ボアフリースパンツ BLACK
68639 PUNK DRUNKERS(パンクドランカーズ)ボンテージ風チェックパンツ - RED CHECK
68640 PUNK DRUNKERS(パンクドランカーズ)ボンテージ風チェックパンツ - YELLOW CHECK
67616 PUNK DRUNKERS(パンクドランカーズ)軽トラックパンツ - BLACK
67618 PUNK DRUNKERS(パンクドランカーズ)軽トラックパンツ - PURPLE
65988 PUNK DRUNKERS (パンクドランカーズ) 寅ブッシュパンツ - BLACK
65990 PUNK DRUNKERS (パンクドランカーズ) 鮫人テーパードデニム - INDIGO
62714 PUNK DRUNKERS PDルーズデニム - INDIGO
60927 PUNK DRUNKERS あいつ目オーバーオール - BROWN
60926 PUNK DRUNKERS あいつ目オーバーオール - BLACK
59895 PUNK DRUNKERS 樹パンツ - BLACK
59896 PUNK DRUNKERS 樹パンツ - BEIGE
62715 PUNK DRUNKERS PDルーズデニム - LT.BLUE
60902 PUNK DRUNKERS 寅デニムパンツ - BLACK
60905 PUNK DRUNKERS ロゴダボパン - BLACK
60906 PUNK DRUNKERS ロゴダボパン - BLUE
60901 PUNK DRUNKERS 寅デニムパンツ - INDIGO
59892 PUNK DRUNKERS Fatミリタリーパンツ - BLACK
59894 PUNK DRUNKERS Fatミリタリーパンツ - KHAKI
56623 PUNK DRUNKERS CAMOカーゴパンツ - KHAKI
54822 PUNK DRUNKERS 手インターデニム - INDIGO
54826 PUNK DRUNKERS パンクドオーバーオール - BLACK
54827 PUNK DRUNKERS パンクドオーバーオール - BEIGE
54812 PUNK DRUNKERS 帰宅部ジャージ下(気合) - BLACK
54824 PUNK DRUNKERS 一瞬ベルト付きニーパンツ(スキニー) - BLACK
54825 PUNK DRUNKERS 一瞬ベルト付きニーパンツ(スキニー) - GRAY
54773 PUNK DRUNKERS [PDSxPAC-MAN]名人コーデュロイパンツ - BEIGE
54816 PUNK DRUNKERS 飲んでるウィンドパンツ - BLACK
54820 PUNK DRUNKERS INDOORパンツ - BLACK
54821 PUNK DRUNKERS INDOORパンツ - M.GRAY
55548 PUNK DRUNKERS 切替イージーパンツ RED/BLACK
55549 PUNK DRUNKERS 切替イージーパンツ BLUE/CHARCOAL
9094 PUNK DRUNKERS バズーカーパンツ CAMO
9249 PUNK DRUNKERS 見てるぞデニム USED
10466 PUNK DRUNKERS 幼虫クロップドパンツ BEIGE
10467 PUNK DRUNKERS 幼虫クロップドパンツ BLACK
10469 PUNK DRUNKERS カメさんデニム GREEN
14455 PUNK DRUNKERS 切替ピチパン SILVER.GLAY
15000 PUNK DRUNKERS 100ミリタリーパンツ あいつCAMO
15315 PUNK DRUNKERS ステージコーデュロイパンツ
15602 PUNK DRUNKERS デニーム USED
16375 PUNK DRUNKERS 2WAYチノパン BEIGE
18866 PUNK DRUNKERS ブロックコーデュロイショーツ GREEN
21187 PUNK DRUNKERS リフレクタージョガーパンツ2015 BLACK
21289 PUNK DRUNKERS パンツスウェット
21634 PUNK DRUNKERS 【PDSxBETONES】ボクサーパンツ illusion
21946 PUNK DRUNKERS 【PDSxストリートファイター】ガイルのミリタリーパンツ G.CAMO
21947 PUNK DRUNKERS 【PDSxストリートファイター】ガイルのミリタリーパンツ B.CAMO
21948 PUNK DRUNKERS 八つ裂きデニム BLUE
21949 PUNK DRUNKERS 八つ裂きデニム BLACK
22740 PUNK DRUNKERS ベトジョガーパンツ NAVY
22741 PUNK DRUNKERS ベトジョガーパンツ CAMO
22834 PUNK DRUNKERS 富士山オーバーオール INDIGO
22835 PUNK DRUNKERS 富士山オーバーオール BLACK
23386 PUNK DRUNKERS ワイドパンツ GRAY
23387 PUNK DRUNKERS ワイドパンツ BLACK