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-04-28 20:47:58')
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
18308 PUNK DRUNKERS CITY. TEE WHITE
34389 PUNK DRUNKERS 【PDSxTREST】TPU iPhone case(STAR PKDS)
34390 PUNK DRUNKERS 【PDSxTREST】TPU iPhone case(花の妖精)
7545 PUNK DRUNKERS タイガーポケットTEE WHITE/PINK
8425 PUNK DRUNKERS ドランカーズ7分TEE WH/NY
9090 PUNK DRUNKERS うにパーカ PURPLE
9094 PUNK DRUNKERS バズーカーパンツ CAMO
9245 PUNK DRUNKERS 虫くいジップパーカ RED
9249 PUNK DRUNKERS 見てるぞデニム USED
10466 PUNK DRUNKERS 幼虫クロップドパンツ BEIGE
10467 PUNK DRUNKERS 幼虫クロップドパンツ BLACK
10468 PUNK DRUNKERS カメさんデニム INDIGO
10469 PUNK DRUNKERS カメさんデニム GREEN
10686 PUNK DRUNKERS 1942.ショーツ GREEN
10688 PUNK DRUNKERS B.B.CAP RED/BLACK
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
11952 PUNK DRUNKERS 光るキーホルダー RED
12180 PUNK DRUNKERS 野球タンク BLUE
12525 PUNK DRUNKERS 目ん玉メッシュタンク BLACK
12526 PUNK DRUNKERS 目ん玉メッシュタンク RED
12703 PUNK DRUNKERS 驚愕ヒーローTEE WHITE/BLACK
12955 PUNK DRUNKERS NEED TEE WHITE