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-05 05:09:25')
AND pc.stock > 0
AND FIND_IN_SET(1, p.color)
AND p.product_id IN (SELECT product_id FROM dtb_product_categories WHERE category_id = 664)
AND pc.del_flg = 0
GROUP BY p.product_id
LIMIT 0, 25
64262 RIPNDIP (リップンディップ) Nerm Cruiser Tee (Black Mineral Wash)
64264 RIPNDIP (リップンディップ) Abduction Tee (Black Mineral Wash)
64266 RIPNDIP (リップンディップ) Lord Nermal Pocket tee (Black Mineral Wash)
64268 RIPNDIP (リップンディップ) Aloha Nerm Short Sleeve Button Up (Black)
64274 RIPNDIP (リップンディップ) Summer Revenge Rhinestone Hoodie (Black)
64286 RIPNDIP (リップンディップ) Nerm Doodle Twill Shorts (Chocolate)
64287 RIPNDIP (リップンディップ) Aloha Nerm Swim Shorts (Black)
64288 RIPNDIP (リップンディップ) Nerm Doodle Cotton Twill Pants (Chocolate)
64290 RIPNDIP (リップンディップ) Summer Revenge 6 Panel (Black)
64293 RIPNDIP (リップンディップ) Lord Nermal Bucket Hat (Black)
64298 RIPNDIP (リップンディップ) Lord Nermal Socks (Black)
64301 RIPNDIP (リップンディップ) We Out Here High Top Shoe (Black)
64306 RIPNDIP (リップンディップ) Lord Nermal Pocket Tee (Black)
64307 RIPNDIP (リップンディップ) Lord Nermal Pocket Long Sleeve (Black)
64308 RIPNDIP (リップンディップ) Lord Nermal Ribbed Beanie (Black)
64362 RIPNDIP (リップンディップ) Lord Nermal 6 Panel Pocket Hat (Black)
65423 RIPNDIP (リップンディップ) Ultralight Beam Puffer Jacket (Multi)
65424 RIPNDIP (リップンディップ) Many Faces Sherpa Jacket (Charcoal)
65436 RIPNDIP (リップンディップ) High On Life Tee (Black Mineral Wash)
65438 RIPNDIP (リップンディップ) Power Tee (Black Mineral Wash)
66850 RIPNDIP (リップンディップ) Love All Tee Black
66853 RIPNDIP (リップンディップ) Drug From God Knit Mohair Sweater Black
66854 RIPNDIP (リップンディップ) Fuckin Fuck Denim Shorts Black
66861 RIPNDIP (リップンディップ) Caterpillar Garden Tee Black
66864 RIPNDIP (リップンディップ) Fuckin Fuck High Top Shoes Black