SELECT SQL_CALC_FOUND_ROWS p.del_flg AS new_arrival_content, 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 dtb_products AS p
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-05-24 20:09:35')
AND ( p.sales_end_datetime IS NULL AND p.deliv_date_id != 9 )
AND pc.classcategory_id1 IN( 25,1,8,117,30,133,132)
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
LIMIT 0, 25
52887 PUNK DRUNKERS [PDSxクレヨンしんちゃん]サトーココノカドーエコBAG
54536 PUNK DRUNKERS あいつ総柄スポーツタオル
54537 PUNK DRUNKERS はんかち / 驚愕 INDIGO
54538 PUNK DRUNKERS はんかち / 驚愕 LT.BLUE
54539 PUNK DRUNKERS カラーサングラス'20 SUMMER GRAY
54540 PUNK DRUNKERS カラーサングラス'20 SUMMER RED
54722 PUNK DRUNKERS pdウエストBAG BLACK
54723 PUNK DRUNKERS [PDSxKUDAN]PUNKUDAN式 クリアベルト CLEAR
54724 PUNK DRUNKERS [PDSxKUDAN]PUNKUDAN式 クリアベルト YELLOW
54725 PUNK DRUNKERS レントゲン靴下 BLACK
54726 PUNK DRUNKERS レントゲン靴下 BLUE
54727 PUNK DRUNKERS 風になりたいハンディファン
55552 PUNK DRUNKERS はんかち / 顔文字 GREEN
55553 PUNK DRUNKERS はんかち / 顔文字 RED
54927 PUNK DRUNKERS PDS POP SOCKETS / カラフルうんこ - カラフルうんこ
54926 PUNK DRUNKERS PDS POP SOCKETS / あいちゅー - あいちゅー
54870 PUNK DRUNKERS 宇宙人スケボーCAP - H.GRAY
54869 PUNK DRUNKERS 宇宙人スケボーCAP - BLACK
54876 PUNK DRUNKERS INDOORニットCAP - CHARCOAL
54877 PUNK DRUNKERS INDOORニットCAP - BEIGE
54933 PUNK DRUNKERS ステッカー / カンフー - BLACK
54934 PUNK DRUNKERS ステッカー / カンフー - RED
54935 PUNK DRUNKERS ステッカー / 宇宙人スケボー - GREEN
54936 PUNK DRUNKERS ステッカー / 宇宙人スケボー - BLUE
54937 PUNK DRUNKERS ステッカー / 鮫人 - RED