SELECT 
  cscart_products.*, 
  cscart_product_descriptions.*, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) as price, 
  GROUP_CONCAT(
    CASE WHEN (
      cscart_products_categories.link_type = 'M'
    ) THEN CONCAT(
      cscart_products_categories.category_id, 
      'M'
    ) ELSE cscart_products_categories.category_id END 
    ORDER BY 
      cscart_categories.storefront_id IN (0, 1) DESC, 
      (
        cscart_products_categories.link_type = 'M'
      ) DESC, 
      cscart_products_categories.category_position ASC, 
      cscart_products_categories.category_id ASC
  ) as category_ids, 
  popularity.total as popularity, 
  companies.company as company_name, 
  cscart_products.is_returnable, 
  cscart_products.return_period, 
  cscart_product_sales.amount as sales_amount, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path, 
  MIN(point_prices.point_price) as point_price, 
  cscart_discussion.type as discussion_type, 
  cscart_product_review_prepared_data.average_rating average_rating, 
  cscart_product_review_prepared_data.reviews_count product_reviews_count 
FROM 
  cscart_products 
  LEFT JOIN cscart_product_prices ON cscart_product_prices.product_id = cscart_products.product_id 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 0, 1) 
  LEFT JOIN cscart_product_descriptions ON cscart_product_descriptions.product_id = cscart_products.product_id 
  AND cscart_product_descriptions.lang_code = 'vn' 
  LEFT JOIN cscart_companies as companies ON companies.company_id = cscart_products.company_id 
  INNER JOIN cscart_products_categories ON cscart_products_categories.product_id = cscart_products.product_id 
  INNER JOIN cscart_categories ON cscart_categories.category_id = cscart_products_categories.category_id 
  AND cscart_categories.storefront_id IN (0, 1) 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND (
    cscart_products.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_products.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_products.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A', 'H') 
  AND cscart_products.status IN ('A', 'H') 
  LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = cscart_products.product_id 
  LEFT JOIN cscart_product_sales ON cscart_product_sales.product_id = cscart_products.product_id 
  AND cscart_product_sales.category_id = 303 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = 320 
  AND cscart_seo_names.type = 'p' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'vn' 
  LEFT JOIN cscart_product_point_prices as point_prices ON point_prices.product_id = cscart_products.product_id 
  AND point_prices.lower_limit = 1 
  AND point_prices.usergroup_id IN (0, 0, 1) 
  LEFT JOIN cscart_discussion ON cscart_discussion.object_id = cscart_products.product_id 
  AND cscart_discussion.object_type = 'P' 
  LEFT JOIN cscart_product_review_prepared_data ON cscart_product_review_prepared_data.product_id = cscart_products.product_id 
  AND cscart_product_review_prepared_data.storefront_id = 0 
WHERE 
  cscart_products.product_id = 320 
  AND (
    companies.status IN ('A') 
    OR cscart_products.company_id = 0
  ) 
GROUP BY 
  cscart_products.product_id

Query time 0.00097

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "point_prices",
          "access_type": "system",
          "possible_keys": ["unique_key", "src_k"],
          "rows": 0,
          "filtered": 0,
          "const_row_not_found": true
        }
      },
      {
        "table": {
          "table_name": "cscart_products",
          "access_type": "const",
          "possible_keys": ["PRIMARY", "status"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "popularity",
          "access_type": "const",
          "possible_keys": ["PRIMARY", "total"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_product_sales",
          "access_type": "const",
          "possible_keys": ["PRIMARY", "pa"],
          "key": "PRIMARY",
          "key_length": "6",
          "used_key_parts": ["category_id", "product_id"],
          "ref": ["const", "const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_discussion",
          "access_type": "const",
          "possible_keys": ["object_id"],
          "key": "object_id",
          "key_length": "6",
          "used_key_parts": ["object_id", "object_type"],
          "ref": ["const", "const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_product_review_prepared_data",
          "access_type": "const",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "7",
          "used_key_parts": ["product_id", "storefront_id"],
          "ref": ["const", "const"],
          "rows": 0,
          "filtered": 0,
          "unique_row_not_found": true
        }
      },
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "ref",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["const"],
          "rows": 1,
          "filtered": 7.692307472,
          "attached_condition": "trigcond(cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,0,1))"
        }
      },
      {
        "block-nl-join": {
          "table": {
            "table_name": "cscart_product_descriptions",
            "access_type": "range",
            "possible_keys": ["PRIMARY", "product_id"],
            "key": "PRIMARY",
            "key_length": "9",
            "used_key_parts": ["product_id", "lang_code"],
            "rows": 1,
            "filtered": 100,
            "attached_condition": "cscart_product_descriptions.product_id = 320 and cscart_product_descriptions.lang_code = 'vn'"
          },
          "buffer_type": "flat",
          "buffer_size": "281",
          "join_type": "BNL",
          "attached_condition": "trigcond(1) and trigcond(cscart_product_descriptions.product_id = 320 and cscart_product_descriptions.lang_code = 'vn')"
        }
      },
      {
        "table": {
          "table_name": "companies",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["company_id"],
          "ref": ["const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(companies.`status` = 'A')"
        }
      },
      {
        "table": {
          "table_name": "cscart_products_categories",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "pt"],
          "key": "pt",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["const"],
          "rows": 2,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "c_status", "p_category_id"],
          "key": "p_category_id",
          "key_length": "3",
          "used_key_parts": ["category_id"],
          "ref": ["v8.cscart_products_categories.category_id"],
          "rows": 2,
          "filtered": 100,
          "index_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H')",
          "attached_condition": "cscart_categories.storefront_id in (0,1)"
        }
      },
      {
        "table": {
          "table_name": "cscart_seo_names",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "dispatch"],
          "key": "PRIMARY",
          "key_length": "206",
          "used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
          "ref": ["const", "const", "const", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_seo_names.`type` = 'p' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'vn')"
        }
      }
    ]
  }
}

Result

product_id product_code product_type status company_id list_price amount weight length width height shipping_freight low_avail_limit timestamp updated_timestamp usergroup_ids is_edp edp_shipping unlimited_download tracking free_shipping zero_price_action is_pbp is_op is_oper is_returnable return_period avail_since out_of_stock_actions localization min_qty max_qty qty_step list_qty_count tax_ids age_verification age_limit options_type exceptions_type details_layout shipping_params show_videos_before_images autoplay_videos facebook_obj_type parent_product_id buy_now_url units_in_product show_price_per_x_units ab__stickers_manual_ids ab__stickers_generated_ids lang_code product shortname short_description full_description meta_keywords meta_description search_words page_title age_warning_message promo_text unit_name price category_ids popularity company_name sales_amount seo_name seo_path point_price discussion_type average_rating product_reviews_count
320 KPSMNHAT908 P A 3 0.00 100 0.000 0 0 0 0.00 0 1782359008 1783581471 0 N N N N Y N N Y 10 0 N N 0 default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} N N activity 0 0.000 0.000 vn Cà Phê Pha Máy KPHUCSINH Morning 908g (hạt) – Đắng Mạnh <p>Cà phê pha máy KPHUCSINH Morning 908g (hạt) cho HORECA – đắng mạnh, dạng hạt cho Espresso crema dày. Sỉ cho quán. K Coffee.</p> <h1>Cà Phê Hạt Rang K Coffee Dòng HORECA – Tinh Hoa Nguyên Chất Đắng Đậm, Lớp Crema Dày Ổn Định Cho Máy Pha</h1> <p>Trong kinh doanh quán cà phê, nhà hàng hay khách sạn, việc giữ được hương vị tươi mới và độ đậm đà đồng đều trên từng tách nhạc chính là "vũ khí bí mật" để giữ chân khách hàng.&nbsp;<b>Cà Phê Hạt Rang K Coffee Dòng HORECA</b>&nbsp;chính là giải pháp thượng hạng được thiết kế riêng cho phân khúc kinh doanh ẩm thực và đồ uống cao cấp.</p> <p>Với định dạng hạt rang mộc nguyên chất, sản phẩm cho phép các Barista và chủ quán tự tay xay tươi ngay trước khi chiết xuất, đảm bảo đánh thức trọn vẹn lớp tinh dầu thơm béo và hương vị mạnh mẽ mộc mạc nhất trong từng ly cà phê phục vụ khách hàng.</p> <h2>1. Thông Tin Chi Tiết Cà Phê Hạt Rang K Coffee HORECA</h2> <ul><li><b>Thương hiệu:</b>&nbsp;K Coffee (Thuộc Tập đoàn Phúc Sinh)</li><li><b>Xuất xứ:</b>&nbsp;Việt Nam</li><li><b>Phân khúc:</b>&nbsp;HORECA (Chuyên dụng cho Quán cà phê, Nhà hàng, Khách sạn cần định lượng lớn và chất lượng đắng mạnh ổn định).</li><li><b>Định dạng sản phẩm:</b>&nbsp;<b>Dạng hạt rang mộc nguyên chất</b>&nbsp;– Thích hợp để lưu trữ hương vị lâu hơn, chủ quán tự xay tươi trước khi pha tùy theo cỡ xay của máy pha hoặc phin.</li><li><b>Hạn sử dụng (HSD):</b>&nbsp;24 tháng kể từ ngày sản xuất.</li></ul> <h2>2. Profile Hương Vị Khẳng Định Gu Đắng Đậm Mạnh Mẽ</h2> <p>Dòng HORECA dạng hạt rang của K Coffee sở hữu những đặc tính hương vị xuất sắc, được tinh chỉnh hoàn hảo để đáp ứng gu thưởng thức đậm đà, bứt phá đặc trưng:</p> <ul><li><b>Vị chủ đạo:</b>&nbsp;Đắng đậm, mạnh mẽ và dứt khoát, mang lại thể chất (body) dày dặn, ấn tượng sâu sắc ngay từ ngụm đầu tiên.</li><li><b>Hương thơm nồng nàn:</b>&nbsp;Nổi bật với nốt hương của socola đen (dark chocolate) quyện cùng vị ngọt ấm của đường nâu cháy.</li><li><b>Độ phức tạp:</b>&nbsp;Profile ít phức tạp, độ chua nhẹ tự nhiên được tiết chế tối đa nhằm đẩy vị đắng mộc thanh lịch lên làm chủ đạo.</li><li><b>Giải pháp đa nhiệm cho mọi phương pháp pha chế:</b><ul><li><b>Dạng hạt cho máy Espresso:</b>&nbsp;Chiết xuất ra ly Espresso hoàn hảo với&nbsp;<b>3 tầng hương</b>&nbsp;độc đáo và lớp bọt&nbsp;<b>crema dày, mịn màng</b>, đậm vị ổn định qua từng tách máy.</li><li><b>Phù hợp phin truyền thống (sau khi xay bột):</b>&nbsp;Sau khi xay mịn vừa phải, hạt rang HORECA hoàn toàn đáp ứng xuất sắc kiểu pha phin truyền thống, cho ra nước cốt màu nâu hổ phách quyến rũ, cực bắt vị khi làm cà phê đen đá hay sữa đá Việt Nam.</li></ul></li></ul> <h2>3. Bộ 3 Cam Kết Vàng Bảo Chứng Cho Sự Tử Tế Của Quán</h2> <p>Giữa thị trường cà phê đầy cạnh tranh, K Coffee giúp quán của bạn khẳng định uy tín vững chắc và bảo vệ sức khỏe cộng đồng bằng&nbsp;<b>Cam Kết 3 KHÔNG</b>&nbsp;tuyệt đối:</p> <ul><li><b>√ KHÔNG MÀU HÓA HỌC:</b>&nbsp;Hạt rang mộc tự nhiên, nước cà phê có màu nâu cánh gián trong trẻo, tuyệt đối không đen kịt nhân tạo.</li><li><b>√ KHÔNG MÙI GÂY HẠI:</b>&nbsp;Nói không với việc tẩm ướp hương liệu hay bơ hóa học độc hại.</li><li><b>√ KHÔNG TRỘN BẮP, ĐẬU NÀNH:</b>&nbsp;100% hạt cà phê nguyên chất, không độn tạp chất cháy khét để tăng trọng lượng giả tạo.</li></ul> <h2>4. Hướng Dẫn Sử Dụng Chuẩn Vị Cho Phin Truyền Thống (Sau Khi Xay)</h2> <p>Sau khi xay hạt cà phê thành dạng bột mịn vừa phải, bạn có thể tiến hành pha chế theo 3 bước chuẩn vị sau đây:</p> <ul><li><b>Bước 1:</b>&nbsp;Cho vào phin truyền thống 3 muỗng cà phê bột (tương đương khoảng 20g), lắc nhẹ cho phẳng mặt.</li><li><b>Bước 2 (Giai đoạn ủ quyết định):</b>&nbsp;Đổ khoảng 20ml nước sôi (<span class="math-inline" data-math="92^\circ\text{C} - 96^\circ\text{C}" data-index-in-node="58"><span class="katex"><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut"></span><span class="mord">9</span><span class="mord"><span class="mord">2</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist"><span class="pstrut"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span><span class="mspace"></span><span class="mbin">−</span><span class="mspace"></span></span><span class="base"><span class="strut"></span><span class="mord">9</span><span class="mord"><span class="mord">6</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist"><span class="pstrut"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span></span>) ngang mặt cà phê.&nbsp;<b>Để ủ trong 5 phút</b>để bột cà phê ngấm nước và nở bung đều. Sau đó, tiến hành đổ thêm lượng nước sôi vừa đủ dùng vào phin, đậy nắp và chờ chiết xuất.</li><li><b>Bước 3:</b>&nbsp;Thêm đường, sữa đặc hoặc đá viên tùy theo khẩu vị của khách hàng để tạo nên những ly Đen đá, Sữa đá thơm ngon tuyệt hảo.</li></ul> <h2>5. Giá Trị Vượt Trội Mà Hạt Rang HORECA Mang Lại Cho Doanh Nghiệp</h2> <ul><li><b>Giữ trọn hương vị tươi mới:</b>&nbsp;Việc lưu trữ dạng hạt và chỉ xay trước khi pha giúp ngăn chặn quá trình oxy hóa tự nhiên, giữ cho ly cà phê luôn thơm nồng như vừa mới ra lò.</li><li><b>Tối ưu giá vốn (Costing):</b>&nbsp;Giải pháp định lượng lớn dành riêng cho kênh HORECA giúp các chủ doanh nghiệp tối ưu hóa chi phí nguyên liệu đầu vào trên mỗi ly nước, tăng biên độ lợi nhuận.</li><li><b>Chất lượng chuẩn quốc tế:</b>&nbsp;Sản xuất theo quy trình khép kín nghiêm ngặt đạt chứng nhận quốc tế (UTZ & BRC toàn cầu), đảm bảo sự ổn định tuyệt đối về hương vị qua từng lô hàng.</li></ul> <p><i>Từ khóa tìm kiếm liên quan (SEO Keywords): cà phê hạt rang k coffee dòng horeca, cà phê hạt mộc nguyên chất cho quán, cà phê hạt pha máy espresso đậm vị, bọt crema dày mịn màng, hạt cà phê đắng đậm hương socola đen, mua cà phê sạch 3 không phúc sinh giá sỉ.</i></p> cà phê pha máy đắng mạnh cho quán, cà phê espresso crema, cà phê hạt sỉ horeca, cà phê robusta cho quán Cà phê pha máy KPHUCSINH Morning 908g (hạt) cho HORECA – đắng mạnh, dạng hạt cho Espresso crema dày. Sỉ cho quán. K Coffee. cà phê pha máy đắng mạnh cho quán, cà phê espresso crema, cà phê hạt sỉ horeca, cà phê robusta cho quán Cà Phê Pha Máy KPHUCSINH Morning 908g (hạt) | K Coffee 10.48000000 303M,319 106 K COFFEE 0 ca-phe-pha-may-kphucsinh-morning-908g-hat-rang 303 D