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 (
SELECT product_id, category_id
FROM dtb_product_categories
WHERE category_id =97
)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-05-03 16:58:08')
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
LIMIT 0, 25
53101 PUNK DRUNKERS PDS×仮面ライダー]滅亡迅雷.net ロンTEE BLACK
53103 PUNK DRUNKERS PDS×仮面ライダー]滅亡迅雷.net ロンTEE WHITE
53104 PUNK DRUNKERS あいつピエロンTEE BLACK
53105 PUNK DRUNKERS あいつピエロンTEE WHITE
54062 PUNK DRUNKERS [PDSxくっきー!]歯ポケロンTEE - BLACK
54063 PUNK DRUNKERS [PDSxくっきー!]歯ポケロンTEE - N.ORANGE
54857 PUNK DRUNKERS [PDSxPAC-MAN]逃げロンTEE - BLACK
54858 PUNK DRUNKERS [PDSxPAC-MAN]逃げロンTEE - N.YELLOW
54861 PUNK DRUNKERS [PDSxTHUNDERBOX]NOW TOKYOロンTEE - WHITE
54862 PUNK DRUNKERS [PDSxTHUNDERBOX]NOW TOKYOロンTEE - BLACK
54865 PUNK DRUNKERS 唐揚げおじさんロンTEE - ASH
54866 PUNK DRUNKERS 唐揚げおじさんロンTEE - LT.PINK
56645 PUNK DRUNKERS [PDSxGODZILLA]ゴジラからあいつロンTEE - BLACK
56646 PUNK DRUNKERS [PDSxGODZILLA]ゴジラからあいつロンTEE - KHAKI
56649 PUNK DRUNKERS 反区怒飯店ロンTEE - WHITE
56650 PUNK DRUNKERS 反区怒飯店ロンTEE - D.YELLOW
59931 PUNK DRUNKERS ウーロンTEE - BLACK
59932 PUNK DRUNKERS ウーロンTEE - ASH
59933 PUNK DRUNKERS ダブロンTEE - BLACK
59934 PUNK DRUNKERS ダブロンTEE - D.GREEN
59935 【予約商品】PUNK DRUNKERS 反抗期ロンTEE - BLACK
59936 PUNK DRUNKERS 反抗期ロンTEE - N.ORANGE
60942 PUNK DRUNKERS マスクメロンTEE - BLACK
60943 PUNK DRUNKERS マスクメロンTEE - D.GREEN
60946 PUNK DRUNKERS SAMENCHUロンTEE - BLACK