SELECT 
  v.feature_id, 
  v.value, 
  v.value_int, 
  v.variant_id, 
  f.feature_type, 
  fd.internal_name, 
  fd.description, 
  fd.prefix, 
  fd.suffix, 
  vd.variant, 
  f.parent_id, 
  f.position, 
  gf.position as gposition, 
  f.display_on_header, 
  f.display_on_catalog, 
  f.display_on_product, 
  f.feature_code, 
  f.purpose 
FROM 
  cscart_product_features as f 
  LEFT JOIN cscart_product_features_values as v ON v.feature_id = f.feature_id 
  LEFT JOIN cscart_product_features_descriptions as fd ON fd.feature_id = v.feature_id 
  AND fd.lang_code = 'en' 
  LEFT JOIN cscart_product_feature_variants fv ON fv.variant_id = v.variant_id 
  LEFT JOIN cscart_product_feature_variant_descriptions as vd ON vd.variant_id = fv.variant_id 
  AND vd.lang_code = 'en' 
  LEFT JOIN cscart_product_features as gf ON gf.feature_id = f.parent_id 
  AND gf.feature_type = 'G' 
WHERE 
  f.status IN ('A') 
  AND v.product_id = 248 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(245, f.categories_path) 
    OR FIND_IN_SET(248, f.categories_path) 
    OR FIND_IN_SET(166, f.categories_path) 
    OR FIND_IN_SET(254, f.categories_path) 
    OR FIND_IN_SET(263, f.categories_path) 
    OR FIND_IN_SET(255, f.categories_path)
  ) 
  AND IF(
    f.parent_id, 
    (
      SELECT 
        status 
      FROM 
        cscart_product_features as df 
      WHERE 
        df.feature_id = f.parent_id
    ), 
    'A'
  ) IN ('A') 
  AND (
    v.variant_id != 0 
    OR (
      f.feature_type != 'C' 
      AND v.value != ''
    ) 
    OR (f.feature_type = 'C') 
    OR v.value_int != ''
  ) 
  AND v.lang_code = 'en' 
ORDER BY 
  fd.internal_name, 
  fv.position

Query time 0.00391

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3154892.14"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "f",
            "access_type": "ALL",
            "rows_examined_per_scan": 35,
            "rows_produced_per_join": 1,
            "filtered": "2.86",
            "cost_info": {
              "read_cost": "4.05",
              "eval_cost": "0.10",
              "prefix_cost": "4.15",
              "data_read_per_join": "440"
            },
            "used_columns": [
              "feature_id",
              "feature_code",
              "purpose",
              "feature_type",
              "categories_path",
              "parent_id",
              "display_on_product",
              "display_on_catalog",
              "display_on_header",
              "status",
              "position"
            ],
            "attached_condition": "((`mobikul_delivery_boy_livedemo`.`f`.`status` = 'A') and (`mobikul_delivery_boy_livedemo`.`f`.`display_on_catalog` = 'Y') and ((`mobikul_delivery_boy_livedemo`.`f`.`categories_path` = '') or (0 <> find_in_set(245,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`)) or (0 <> find_in_set(248,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`)) or (0 <> find_in_set(166,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`)) or (0 <> find_in_set(254,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`)) or (0 <> find_in_set(263,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`)) or (0 <> find_in_set(255,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`))) and (if(`mobikul_delivery_boy_livedemo`.`f`.`parent_id`,(/* select#2 */ select `mobikul_delivery_boy_livedemo`.`df`.`status` from `mobikul_delivery_boy_livedemo`.`cscart_product_features` `df` where (`mobikul_delivery_boy_livedemo`.`df`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`parent_id`)),'A') = 'A'))",
            "attached_subqueries": [
              {
                "dependent": true,
                "cacheable": false,
                "query_block": {
                  "select_id": 2,
                  "cost_info": {
                    "query_cost": "4.15"
                  },
                  "table": {
                    "table_name": "df",
                    "access_type": "ALL",
                    "rows_examined_per_scan": 35,
                    "rows_produced_per_join": 3,
                    "filtered": "10.00",
                    "cost_info": {
                      "read_cost": "0.65",
                      "eval_cost": "0.35",
                      "prefix_cost": "4.15",
                      "data_read_per_join": "1K"
                    },
                    "used_columns": [
                      "feature_id",
                      "status"
                    ],
                    "attached_condition": "(`mobikul_delivery_boy_livedemo`.`df`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`parent_id`)"
                  }
                }
              }
            ]
          }
        },
        {
          "table": {
            "table_name": "v",
            "access_type": "ALL",
            "rows_examined_per_scan": 343,
            "rows_produced_per_join": 1,
            "filtered": "0.29",
            "using_join_buffer": "hash join",
            "cost_info": {
              "read_cost": "34.89",
              "eval_cost": "0.10",
              "prefix_cost": "39.38",
              "data_read_per_join": "792"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ],
            "attached_condition": "((`mobikul_delivery_boy_livedemo`.`v`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`feature_id`) and (`mobikul_delivery_boy_livedemo`.`v`.`product_id` = 248) and ((`mobikul_delivery_boy_livedemo`.`v`.`variant_id` <> 0) or ((`mobikul_delivery_boy_livedemo`.`f`.`feature_type` <> 'C') and (`mobikul_delivery_boy_livedemo`.`v`.`value` <> '')) or (`mobikul_delivery_boy_livedemo`.`f`.`feature_type` = 'C') or (`mobikul_delivery_boy_livedemo`.`v`.`value_int` <> 0)) and (`mobikul_delivery_boy_livedemo`.`v`.`lang_code` = 'en'))"
          }
        },
        {
          "table": {
            "table_name": "fd",
            "access_type": "ALL",
            "rows_examined_per_scan": 35,
            "rows_produced_per_join": 35,
            "filtered": "100.00",
            "using_join_buffer": "hash join",
            "cost_info": {
              "read_cost": "0.59",
              "eval_cost": "3.50",
              "prefix_cost": "43.48",
              "data_read_per_join": "79K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "internal_name",
              "prefix",
              "suffix",
              "lang_code"
            ],
            "attached_condition": "<if>(is_not_null_compl(fd), ((`mobikul_delivery_boy_livedemo`.`fd`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`feature_id`) and (`mobikul_delivery_boy_livedemo`.`fd`.`lang_code` = 'en')), true)"
          }
        },
        {
          "table": {
            "table_name": "fv",
            "access_type": "ALL",
            "rows_examined_per_scan": 158,
            "rows_produced_per_join": 5530,
            "filtered": "100.00",
            "using_join_buffer": "hash join",
            "cost_info": {
              "read_cost": "0.99",
              "eval_cost": "553.00",
              "prefix_cost": "597.46",
              "data_read_per_join": "6M"
            },
            "used_columns": [
              "variant_id",
              "position"
            ],
            "attached_condition": "<if>(is_not_null_compl(fv), (`mobikul_delivery_boy_livedemo`.`fv`.`variant_id` = `mobikul_delivery_boy_livedemo`.`v`.`variant_id`), true)"
          }
        },
        {
          "table": {
            "table_name": "vd",
            "access_type": "ALL",
            "rows_examined_per_scan": 158,
            "rows_produced_per_join": 873740,
            "filtered": "100.00",
            "using_join_buffer": "hash join",
            "cost_info": {
              "read_cost": "243.09",
              "eval_cost": "87374.00",
              "prefix_cost": "88214.56",
              "data_read_per_join": "2G"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ],
            "attached_condition": "<if>(is_not_null_compl(vd), ((`mobikul_delivery_boy_livedemo`.`vd`.`variant_id` = `mobikul_delivery_boy_livedemo`.`fv`.`variant_id`) and (`mobikul_delivery_boy_livedemo`.`vd`.`lang_code` = 'en')), true)"
          }
        },
        {
          "table": {
            "table_name": "gf",
            "access_type": "ALL",
            "rows_examined_per_scan": 35,
            "rows_produced_per_join": 30580901,
            "filtered": "100.00",
            "using_join_buffer": "hash join",
            "cost_info": {
              "read_cost": "8587.42",
              "eval_cost": "3058090.16",
              "prefix_cost": "3154892.14",
              "data_read_per_join": "12G"
            },
            "used_columns": [
              "feature_id",
              "feature_type",
              "position"
            ],
            "attached_condition": "<if>(is_not_null_compl(gf), ((`mobikul_delivery_boy_livedemo`.`gf`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`parent_id`) and (`mobikul_delivery_boy_livedemo`.`gf`.`feature_type` = 'G')), true)"
          }
        }
      ]
    }
  }
}

Result

feature_id value value_int variant_id feature_type internal_name description prefix suffix variant parent_id position gposition display_on_header display_on_catalog display_on_product feature_code purpose
47 N 0 C 3D support 3D support 20 0 10 N Y Y find_products
42 157 M Accessories included Accessories included HDMI cable 40 0 50 N Y Y find_products
42 158 M Accessories included Accessories included USB cable 40 0 50 N Y Y find_products
42 156 M Accessories included Accessories included Headset 40 0 50 N Y Y find_products
45 161 S Colors Colors Black 40 0 50 N Y Y find_products
32 148 M Communications Communications Wi-Fi (802.11b/g/n) 30 0 40 N Y Y find_products
32 149 M Communications Communications Ethernet 30 0 40 N Y Y find_products
44 160 M Compatibility with console videogames Compatibility with console videogames Xbox One 40 0 50 N Y Y find_products
41 yes, wireless 0 T Controller included Controller included 40 0 50 N Y Y describe_product
29 144 S CPU CPU 8-core AMD 24 0 20 N Y Y find_products
28 143 S CPU speed CPU speed 1.75 GHz 24 0 20 N Y Y find_products
38 343x81x264 mm 0 T Dimensions (W x H x D) Dimensions (W x H x D) 37 0 100 N Y Y describe_product
46 HDMI; complectation Kinect 2.0 0 T Features Features 40 0 50 N Y Y describe_product
26 141 S Graphics processor Graphics processor integrated AMD Radeon GPU 24 0 20 N Y Y find_products
23 139 S Hard drive Hard drive 500 GB 20 0 10 Y Y Y find_products
22 Y 0 C HD support HD support 20 0 10 N Y Y find_products
31 147 M Ports Ports optical audio output 30 0 40 N Y Y find_products
31 146 M Ports Ports USB x2 30 0 40 N Y Y find_products
31 145 M Ports Ports HDMI 30 0 40 N Y Y find_products
25 140 S RAM RAM 8192 MB, DDR3 24 0 20 N Y Y find_products
36 155 M Supported formats Supported formats WMA 33 0 30 N Y Y find_products
35 153 M Supported storage devices Supported storage devices DVD RW 33 0 30 N Y Y find_products
35 152 M Supported storage devices Supported storage devices DVD R 33 0 30 N Y Y find_products
35 154 M Supported storage devices Supported storage devices CD 33 0 30 N Y Y find_products
35 151 M Supported storage devices Supported storage devices DVD 33 0 30 N Y Y find_products
35 150 M Supported storage devices Supported storage devices Blu-ray 33 0 30 N Y Y find_products
27 142 S System performance for floating point computation System performance for floating point computation 1.23 TFLOPs 24 0 20 N Y Y find_products
21 137 S Type Type stationary 20 0 10 N Y Y find_products
34 Y 0 C Video playback Video playback 33 0 30 N Y Y find_products
43 159 S Videogames storage Videogames storage BD (Blu-ray Disc) 40 0 50 N Y Y find_products
39 3.62 kg 0 T Weight Weight 37 0 100 N Y Y describe_product