SELECT 
  cscart_products.product_id, 
  cscart_products.product_code, 
  cscart_products.status, 
  cscart_products.company_id, 
  cscart_products.list_price, 
  cscart_products.shipping_params, 
  cscart_product_review_prepared_data.average_rating, 
  cscart_product_descriptions.product, 
  cscart_product_descriptions.short_description, 
  cscart_product_descriptions.full_description, 
  cscart_product_descriptions.promo_text, 
  IFNULL(
    avg(opr.rating_value), 
    3
  ) as actual_rating, 
  cd.category, 
  cd.category_id, 
  cc.category_id as main_category, 
  pvd.variant_id, 
  pvd.variant, 
  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 
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) 
  LEFT JOIN cscart_product_descriptions ON cscart_product_descriptions.product_id = cscart_products.product_id 
  LEFT JOIN cscart_product_review_prepared_data ON cscart_product_review_prepared_data.product_id = cscart_products.product_id 
  left join cscart_product_reviews opr on opr.product_id = cscart_products.product_id 
  and opr.status = "A" 
  left join cscart_product_features_values pfv on pfv.product_id = cscart_products.product_id 
  AND pfv.feature_id = 62 
  left join cscart_product_feature_variant_descriptions pvd on pvd.variant_id = pfv.variant_id 
  inner join cscart_products_categories pc on pc.product_id = cscart_products.product_id 
  inner join cscart_categories cc on cc.category_id = pc.category_id 
  and pc.link_type = "M" 
  inner join cscart_category_descriptions cd on cd.category_id = cc.parent_id 
  AND cscart_product_descriptions.lang_code = 'en' 
WHERE 
  cscart_products.product_id = 10504

Query time 0.00084

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "80.36"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_products",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "3",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.10",
            "prefix_cost": "0.00",
            "data_read_per_join": "5K"
          },
          "used_columns": [
            "product_id",
            "product_code",
            "status",
            "company_id",
            "list_price",
            "shipping_params"
          ]
        }
      },
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "const",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id",
            "idx_product_prices_usergroup_limit"
          ],
          "key": "usergroup",
          "used_key_parts": [
            "product_id",
            "usergroup_id",
            "lower_limit"
          ],
          "key_length": "9",
          "ref": [
            "const",
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.10",
            "prefix_cost": "0.00",
            "data_read_per_join": "24"
          },
          "used_columns": [
            "product_id",
            "price",
            "percentage_discount",
            "lower_limit",
            "usergroup_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "cscart_product_descriptions",
          "access_type": "const",
          "possible_keys": [
            "PRIMARY",
            "product_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "product_id",
            "lang_code"
          ],
          "key_length": "9",
          "ref": [
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.10",
            "prefix_cost": "0.00",
            "data_read_per_join": "4K"
          },
          "used_columns": [
            "product_id",
            "lang_code",
            "product",
            "short_description",
            "full_description",
            "promo_text"
          ]
        }
      },
      {
        "table": {
          "table_name": "pc",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "link_type",
            "pt"
          ],
          "key": "pt",
          "used_key_parts": [
            "product_id",
            "link_type"
          ],
          "key_length": "6",
          "ref": [
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "0.49",
            "eval_cost": "0.10",
            "prefix_cost": "0.59",
            "data_read_per_join": "16"
          },
          "used_columns": [
            "product_id",
            "category_id",
            "link_type"
          ]
        }
      },
      {
        "table": {
          "table_name": "cc",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "parent",
            "p_category_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "category_id"
          ],
          "key_length": "3",
          "ref": [
            "cscart_db.pc.category_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "0.94",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "category_id",
            "parent_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "cscart_product_review_prepared_data",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "3",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 2,
          "rows_produced_per_join": 2,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.50",
            "eval_cost": "0.20",
            "prefix_cost": "1.64",
            "data_read_per_join": "32"
          },
          "used_columns": [
            "product_id",
            "average_rating"
          ]
        }
      },
      {
        "table": {
          "table_name": "opr",
          "access_type": "ref",
          "possible_keys": [
            "idx_product_id"
          ],
          "key": "idx_product_id",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "3",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 6,
          "rows_produced_per_join": 12,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "3.00",
            "eval_cost": "1.20",
            "prefix_cost": "5.84",
            "data_read_per_join": "19K"
          },
          "used_columns": [
            "product_id",
            "rating_value",
            "status"
          ],
          "attached_condition": "<if>(is_not_null_compl(opr), (`cscart_db`.`opr`.`status` = 'A'), true)"
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id",
            "fl"
          ],
          "key": "product_id",
          "used_key_parts": [
            "product_id",
            "feature_id"
          ],
          "key_length": "6",
          "ref": [
            "const",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 12,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "6.13",
            "eval_cost": "1.20",
            "prefix_cost": "13.16",
            "data_read_per_join": "480"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "pvd",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id"
          ],
          "key_length": "3",
          "ref": [
            "cscart_db.pfv.variant_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 12,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "3.00",
            "eval_cost": "1.20",
            "prefix_cost": "17.36",
            "data_read_per_join": "89K"
          },
          "used_columns": [
            "variant_id",
            "variant"
          ]
        }
      },
      {
        "table": {
          "table_name": "cd",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "category_id"
          ],
          "key_length": "3",
          "ref": [
            "cscart_db.cc.parent_id"
          ],
          "rows_examined_per_scan": 15,
          "rows_produced_per_join": 180,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "45.00",
            "eval_cost": "18.00",
            "prefix_cost": "80.36",
            "data_read_per_join": "545K"
          },
          "used_columns": [
            "category_id",
            "category"
          ]
        }
      }
    ]
  }
}

Result

product_id product_code status company_id list_price shipping_params average_rating product short_description full_description promo_text actual_rating category category_id main_category variant_id variant price
10504 SKU018 A 13 799.00 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;} 4.67 Retinol & Peptide Serum- 0.2% Retinol + 1% Peptide - 30ml Firms skin, reduces wrinkles, and improves elasticity. <p>The unique and rare combination of Retinol and Peptides in a single product works effectively in minimizing the signs of aging. The serum nourishes and moisturizes skin to fight fine lines and wrinkles. This also firms and plumps skin. This anti-aging duo works well in tandem and gives the benefit of two age-defying products in a single bottle.</p> <p><br /></p> <p><br /></p> <p><img src="https://cdn.kindlife.in/images/Deconstruct/Face%20Serums/Retinol%20serum/retinol-1.jpg?1673508430296" alt="retinol-1.jpg?1673508430296" /><br /></p> <p><br /></p> <p><br /></p> <p><img src="https://cdn.kindlife.in/images/Deconstruct/Face%20Serums/Retinol%20serum/retinol-2.jpg?1673508452053" alt="retinol-2.jpg?1673508452053" /><br /></p> <p><br /></p> <p><br /></p> <p><img src="https://cdn.kindlife.in/images/Deconstruct/Face%20Serums/Retinol%20serum/retinol-3.jpg?1673508465637" alt="retinol-3.jpg?1673508465637" /><br /></p> <p><br /></p> <p><br /></p> <p><img src="https://cdn.kindlife.in/images/Deconstruct/Face%20Serums/Retinol%20serum/retinol-5.jpg?1673508477766" alt="retinol-5.jpg?1673508477766" /><br /></p> <p><br /></p> <p><br /></p> <p></p> <p><strong>How to use:-</strong></p> <p>1) Apply 2-3 drops to dry skin after cleansing. 2) Gently massage until the entire product is absorbed into the skin. 3) Use of moisturizer is mandatory after using this product.<br />4) It is recommended to use in night skincare routine only. 5) Start using 2-3 times a week and SLOWLY increase the frequency of usage to every day.</p> <p>Products will be shipped with in a week.</p> <ul><li>Use<strong> KLOVE</strong> & Get flat 5% off orders above Rs. 999.</li><li>Use<strong> GLOW10</strong> & Get Flat 10% off on orders above Rs. 1799.</li></ul> 4.6667 0 3073 27366 Deconstruct Skincare 0.000000