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 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-24 09:14:58')
AND pc.stock > 0
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
ORDER BY MAX(price02)
LIMIT 0, 75
64297 RIPNDIP (リップンディップ) Lord Nermal Socks (White)
64298 RIPNDIP (リップンディップ) Lord Nermal Socks (Black)
66881 RIPNDIP (リップンディップ) Taste The Rainbow Lanyard Lavender
66882 RIPNDIP (リップンディップ) Fuckin Fuck Lanyard Black
67896 RIPNDIP (リップンディップ) Lord Nermal Mid Socks (Olive)
68540 RIPNDIP (リップンディップ) Nermal Loves Socks WHITE
68541 RIPNDIP (リップンディップ) Nermal Loves Socks BLACK
69580 RIPNDIP (リップンディップ) LORD NERMAL MID SOCKS DUSTY LAVENDER
69581 RIPNDIP (リップンディップ) NERMAL LOVES MID SOCKS (BLACK)
69582 RIPNDIP (リップンディップ) NERMAL LOVES SOCKS (CHARCOAL)
69583 RIPNDIP (リップンディップ) PEEKING NERMAL SOCKS (PURPLE & GOLD)
70615 RIPNDIP (リップンディップ)PEEKING NERMAL SOCKS (WHITE/LILAC)
70616 RIPNDIP (リップンディップ)LORD NERMAL SOCKS (WARM GRAY)
70617 RIPNDIP (リップンディップ)LORD NERMAL SOCKS (BLACK HEATHER)
71299 RIPNDIP (リップンディップ) ILY FUCKIN FUCK SOCKS
71300 RIPNDIP (リップンディップ) PEEKING NERMAL SOCKS (WHITE)
71301 RIPNDIP (リップンディップ) LORD NERMAL SOCKS (CHARCOAL)
71302 RIPNDIP (リップンディップ) LOVE YOU MID SOCKS (WHITE)
60641 RIPNDIP Scribble Face Mask (Green)
65453 RIPNDIP(リップッディップ) Peek A Nermal Boxers (Cobalt Blue)
64308 RIPNDIP (リップンディップ) Lord Nermal Ribbed Beanie (Black)
65445 RIPNDIP (リップンディップ) Lord Nermal Patch Beanie (Navy Lightning Wash)
66870 RIPNDIP (リップンディップ) Lord Nermal Beanie Black / Mint Tie Dye
64257 RIPNDIP (リップンディップ) Lord Nermal Pocket Tee (Natural)
64267 RIPNDIP (リップンディップ) Lord Nermal Pocket Tee (Gray)
64262 RIPNDIP (リップンディップ) Nerm Cruiser Tee (Black Mineral Wash)
64264 RIPNDIP (リップンディップ) Abduction Tee (Black Mineral Wash)
69588 RIPNDIP (リップンディップ) LORD NERMAL WAFFLE KNIT BEANIE (CHARCOAL)
70614 RIPNDIP (リップンディップ) LORD NERMAL SPLIT BEANIE (NAVY/SLATE)
64266 RIPNDIP (リップンディップ) Lord Nermal Pocket tee (Black Mineral Wash)
64306 RIPNDIP (リップンディップ) Lord Nermal Pocket Tee (Black)
64327 RIPNDIP (リップンディップ) Lord Nermal Pocket Tee (White)
66860 RIPNDIP (リップンディップ) Already Won Tee Charcoal
66861 RIPNDIP (リップンディップ) Caterpillar Garden Tee Black
64290 RIPNDIP (リップンディップ) Summer Revenge 6 Panel (Black)
64362 RIPNDIP (リップンディップ) Lord Nermal 6 Panel Pocket Hat (Black)
65436 RIPNDIP (リップンディップ) High On Life Tee (Black Mineral Wash)
65438 RIPNDIP (リップンディップ) Power Tee (Black Mineral Wash)
65439 RIPNDIP (リップンディップ) The Unknown Tee (Purple Mineral Wash)
67842 RIPNDIP (リップンディップ) NERMA LISA POCKET TEE (LIGHT SLATE)
67881 RIPNDIP (リップンディップ) In the Clouds Tee Natural
67882 RIPNDIP (リップンディップ) Charanerm Tee Charcoal
67883 RIPNDIP (リップンディップ) You Love Me Tee Almond
67884 RIPNDIP (リップンディップ) Astroworld Tee Cornflower Blue
67886 RIPNDIP (リップンディップ) Great Wave Tee (Sage)
68478 RIPNDIP (リップンディップ) Peace Love RIPNDIP Tee BLACK
68479 RIPNDIP (リップンディップ) Nerminator 2.0 Tee BLACK
68529 RIPNDIP (リップンディップ) Lord Savior Nerm Tee BLACK
68538 RIPNDIP (リップンディップ) Lei’d Tee NATURAL
69592 RIPNDIP (リップンディップ) SUSHI NERM TEE (GREY)
71297 RIPNDIP (リップンディップ) LORD NERMAL BEANIE (OFF WHITE)
70875 RIPNDIP(リップンディップ) LORD NERMAL POCKET TEE (BLACK LIGHTNING WASH)
70876 RIPNDIP(リップンディップ) TRAVIS TEE (NATURAL)
70877 RIPNDIP(リップンディップ) MCFUCKIN TEE (NATUAL)
70878 RIPNDIP(リップンディップ) RISE N GRIND TEE
64293 RIPNDIP (リップンディップ) Lord Nermal Bucket Hat (Black)
64307 RIPNDIP (リップンディップ) Lord Nermal Pocket Long Sleeve (Black)
64326 RIPNDIP (リップンディップ) Lord Nermal Pocket Long Sleeve (White)
65444 RIPNDIP (リップンディップ) Lord Nermal Pocket Long Sleeve (Sage)
65435 RIPNDIP (リップンディップ) OG Prisma Short Sleeve Tee (Slate Grey)
68480 RIPNDIP (リップンディップ) Nerminator 2.0 Snapback BLACK
69590 RIPNDIP (リップンディップ) MAN I LOVE FELINES STRAPBACK
69591 RIPNDIP (リップンディップ) LUCKY NERM WOOL STRAPBACK
70575 RIPNDIP (リップンディップ) NERVOUS SYSTEM TRUCKER HAT
70576 RIPNDIP (リップンディップ) GEO STRAPBACK
66850 RIPNDIP (リップンディップ) Love All Tee Black
67438 RIPNDIP (リップンディップ) Drug From God Tee Black
68477 RIPNDIP (リップンディップ) Peace Love RIPNDIP Long Sleeve BLACK
69589 RIPNDIP (リップンディップ) LORD NERMAL SHERPA BUCKET HAT
70577 RIPNDIP (リップンディップ) BUBBLE BUCKET HAT (COOL GREY)
71293 RIPNDIP (リップンディップ) IS THIS REAL LIFE TRUCKER HAT
71294 RIPNDIP (リップンディップ) FAN FAVE SNAPBACK
71295 RIPNDIP (リップンディップ) TEAM SPIRIT STRAPBACK
71296 RIPNDIP (リップンディップ) ILY FUCKIN FUCK STRAPBACK
71298 RIPNDIP (リップンディップ) PRAYING HANDS DAD HAT (BLACK)