SELECT 
  pf.feature_id, 
  pf.company_id, 
  pf.feature_type, 
  pf.parent_id, 
  pf.display_on_product, 
  pf.display_on_catalog, 
  pf.display_on_header, 
  cscart_product_features_descriptions.description, 
  cscart_product_features_descriptions.internal_name, 
  cscart_product_features_descriptions.lang_code, 
  cscart_product_features_descriptions.prefix, 
  cscart_product_features_descriptions.suffix, 
  pf.categories_path, 
  cscart_product_features_descriptions.full_description, 
  pf.status, 
  pf.comparison, 
  pf.position, 
  pf.purpose, 
  pf.feature_style, 
  pf.filter_style, 
  pf.feature_code, 
  pf.timestamp, 
  pf.updated_timestamp, 
  pf_groups.position AS group_position, 
  cscart_product_features_values.value, 
  cscart_product_features_values.variant_id, 
  cscart_product_features_values.value_int, 
  pf.mdc_feature 
FROM 
  cscart_product_features AS pf 
  LEFT JOIN cscart_product_features AS pf_groups ON pf.parent_id = pf_groups.feature_id 
  LEFT JOIN cscart_product_features_descriptions AS pf_groups_description ON pf_groups_description.feature_id = pf.parent_id 
  AND pf_groups_description.lang_code = 'en' 
  LEFT JOIN cscart_product_features_descriptions ON cscart_product_features_descriptions.feature_id = pf.feature_id 
  AND cscart_product_features_descriptions.lang_code = 'en' 
  INNER JOIN cscart_product_features_values ON cscart_product_features_values.feature_id = pf.feature_id 
  AND cscart_product_features_values.product_id = 348 
  AND cscart_product_features_values.lang_code = 'en' 
WHERE 
  1 = 1 
  AND pf.feature_type != 'G' 
  AND pf.status IN ('A') 
  AND (
    pf_groups.status IN ('A') 
    OR pf_groups.status IS NULL
  ) 
  AND pf.company_id IN (0, 3) 
  AND pf.display_on_product = 'Y' 
  AND (
    pf.categories_path = '' 
    OR ISNULL(pf.categories_path) 
    OR FIND_IN_SET(335, pf.categories_path) 
    OR FIND_IN_SET(343, pf.categories_path)
  ) 
GROUP BY 
  pf.feature_id 
ORDER BY 
  group_position asc, 
  pf_groups_description.description asc, 
  pf_groups.feature_id asc, 
  pf.position asc, 
  cscart_product_features_descriptions.description asc, 
  pf.feature_id asc

Query time 0.00168

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "66.69"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "pf",
              "access_type": "ALL",
              "possible_keys": [
                "PRIMARY",
                "status",
                "company_id"
              ],
              "rows_examined_per_scan": 133,
              "rows_produced_per_join": 11,
              "filtered": "8.80",
              "cost_info": {
                "read_cost": "29.72",
                "eval_cost": "2.34",
                "prefix_cost": "32.06",
                "data_read_per_join": "13K"
              },
              "used_columns": [
                "feature_id",
                "feature_code",
                "company_id",
                "purpose",
                "feature_style",
                "filter_style",
                "feature_type",
                "categories_path",
                "parent_id",
                "display_on_product",
                "display_on_catalog",
                "display_on_header",
                "status",
                "position",
                "comparison",
                "timestamp",
                "updated_timestamp",
                "mdc_feature"
              ],
              "attached_condition": "((`danishecarter_25_march`.`pf`.`feature_type` <> 'G') and (`danishecarter_25_march`.`pf`.`status` = 'A') and (`danishecarter_25_march`.`pf`.`company_id` in (0,3)) and (`danishecarter_25_march`.`pf`.`display_on_product` = 'Y') and ((`danishecarter_25_march`.`pf`.`categories_path` = '') or isnull(`danishecarter_25_march`.`pf`.`categories_path`) or find_in_set(335,`danishecarter_25_march`.`pf`.`categories_path`) or find_in_set(343,`danishecarter_25_march`.`pf`.`categories_path`)))"
            }
          },
          {
            "table": {
              "table_name": "pf_groups",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id"
              ],
              "key_length": "3",
              "ref": [
                "danishecarter_25_march.pf.parent_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "19.00",
              "cost_info": {
                "read_cost": "11.70",
                "eval_cost": "0.44",
                "prefix_cost": "46.10",
                "data_read_per_join": "2K"
              },
              "used_columns": [
                "feature_id",
                "status",
                "position"
              ],
              "attached_condition": "<if>(found_match(pf_groups), ((`danishecarter_25_march`.`pf_groups`.`status` = 'A') or isnull(`danishecarter_25_march`.`pf_groups`.`status`)), true)"
            }
          },
          {
            "table": {
              "table_name": "pf_groups_description",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "danishecarter_25_march.pf.parent_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "2.22",
                "eval_cost": "0.44",
                "prefix_cost": "48.77",
                "data_read_per_join": "5K"
              },
              "used_columns": [
                "feature_id",
                "description",
                "lang_code"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_product_features_descriptions",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "danishecarter_25_march.pf.feature_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "2.22",
                "eval_cost": "0.44",
                "prefix_cost": "51.43",
                "data_read_per_join": "5K"
              },
              "used_columns": [
                "feature_id",
                "description",
                "internal_name",
                "full_description",
                "prefix",
                "suffix",
                "lang_code"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_product_features_values",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "fl",
                "lang_code",
                "product_id",
                "fpl",
                "idx_product_feature_variant_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id",
                "product_id"
              ],
              "key_length": "6",
              "ref": [
                "danishecarter_25_march.pf.feature_id",
                "const"
              ],
              "rows_examined_per_scan": 5,
              "rows_produced_per_join": 11,
              "filtered": "99.76",
              "index_condition": "(`danishecarter_25_march`.`cscart_product_features_values`.`lang_code` = 'en')",
              "cost_info": {
                "read_cost": "13.03",
                "eval_cost": "2.22",
                "prefix_cost": "66.69",
                "data_read_per_join": "8K"
              },
              "used_columns": [
                "feature_id",
                "product_id",
                "variant_id",
                "value",
                "value_int",
                "lang_code"
              ]
            }
          }
        ]
      }
    }
  }
}

Result

feature_id company_id feature_type parent_id display_on_product display_on_catalog display_on_header description internal_name lang_code prefix suffix categories_path full_description status comparison position purpose feature_style filter_style feature_code timestamp updated_timestamp group_position value variant_id value_int mdc_feature
1055 0 S 0 Y N N Ad Online since Ad Online since en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744616121 1744616121 24088 mdc_ad_online_since
1151 0 M 0 Y N N Additional Features Additional Features en 335,336,337,338,339,340,341,342,343,344,345,346,347,348,335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products multiple_checkbox checkbox 1744893338 1744893338 26265 mdc_additional_features
1106 0 S 0 Y N N Approved Seats Approved Seats en 343 A N 0 find_products text checkbox 1744617012 1744617012 25670 mdc_approved_seats
1107 0 S 0 Y N N Axels Axels en 343,344,345,346,347 A N 0 find_products text checkbox 1744617012 1744617012 25676 mdc_axels
1041 0 S 0 Y N N Categories Categories en 336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744615592 1744626079 24181 mdc_categories
1057 0 S 0 Y N N Climatisations Climatisations en 336,337,338,343,345,347,348 A N 0 find_products text checkbox 1744616982 1744616982 25403 mdc_climatisations
1046 0 N 0 Y N N Construction Year Construction Year en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text slider 1744616119 1744619141 26004 2022.00 mdc_construction_year
1050 0 S 0 Y N N Country Country en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744616120 1744616120 23864 mdc_countryversion
1072 0 S 0 Y N N Cruise Control Cruise Control en 337,338,342,343,345,347,348 A N 0 find_products text checkbox 1744616988 1744616988 25484 mdc_speedcontrols
1059 0 N 0 Y N N Cylinder Cylinder en 336,338,342,343,345,347,348 A N 0 find_products text slider 1744616983 1744616983 25421 11.00 mdc_cylinder
1047 0 S 0 Y N N Damage Unrepaired Damage Unrepaired en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744616119 1744616119 23804 mdc_damageunrepaired
1071 0 S 0 Y N N Drive Types Drive Types en 337,338,342,343,348 A N 0 find_products text checkbox 1744616988 1744616988 25483 mdc_drivetypes
1067 0 S 0 Y N N Emmission Class Emmission Class en 337,338,343,345,347,348 A N 0 find_products text checkbox 1744616985 1744616985 25450 mdc_emissionclasses
1061 0 S 0 Y N N Emmission Stickers Emmission Stickers en 336,337,338,339,343,345,347,348 A N 0 find_products text checkbox 1744616983 1744616983 25431 mdc_emissionstickers
1064 0 N 0 Y N N First Registration First Registration en 337,338,342,343,344,345,346,347,348 A N 0 find_products text slider 1744616985 1744619148 26010 200904.00 mdc_firstRegistration
1044 0 S 0 Y N N Fuels Fuels en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744616118 1744616118 23793 mdc_fuels
1069 0 S 0 Y N N Gearboxes Gearboxes en 337,338,341,342,343,345,347,348 A N 0 find_products text checkbox 1744616987 1744616987 25465 mdc_gearboxes
1103 0 S 0 Y N N Heating Types Heating Types en 343 A N 0 find_products text checkbox 1744617012 1744617012 25652 mdc_heatingtypes
1155 0 N 0 Y N N Height Height en 343 A N 0 find_products text slider 1744957586 1744957586 26393 1500.00 mdc_height
1056 0 E 0 Y N N Makers Makers en 336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 organize_catalog brand checkbox 1744616886 1744616975 25101 mdc_makers
1052 0 N 0 Y N N MDC Weight MDC Weight en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text slider 1744616121 1744619147 24066 1000.00 mdc_weight
1063 0 N 0 Y N N Mileage Mileage en 337,338,340,342,345,347,348,343 A N 0 find_products text slider 1744616985 1744788263 26049 156352.00 mdc_mileage
1070 0 S 0 Y N N Mobilede Colors Mobilede Colors en 337,338,340,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744616987 1744616987 25471 mdc_colors
1105 0 N 0 Y N N Number of Beds Number of Beds en 343 A N 0 find_products text slider 1744617012 1744617012 25663 4.00 mdc_no_of_beds
1111 0 S 0 Y N N Number of bunks Number of bunks en 343 A N 0 find_products text checkbox 1744617013 1744617013 26050 mdc_num_of_bunks
1077 0 N 0 Y N N Number of previous owners Number of previous owners en 338,343 A N 0 find_products text slider 1744616991 1744616991 26051 3.00 mdc_numberOfPreviousOwners
1054 0 M 0 Y N N Offer details additional variants Offer details additional variants en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products multiple_checkbox checkbox 1744616121 1744616121 24079 mdc_offer_details_additional
1084 0 M 0 Y N N Parking assistants Parking assistants en 338,343,348 A N 0 find_products multiple_checkbox checkbox 1744616993 1744616993 25547 mdc_parkingassistants
1110 0 N 0 Y N N Payload Payload en 343,344,346,348 A N 0 find_products text slider 1744617012 1744617012 25695 1500.00 mdc_payload
1108 0 N 0 Y N N Permissible weight Permissible weight en 343,344,345,346,347,348 A N 0 find_products text slider 1744617012 1744619148 25684 12000.00 mdc_pw
1062 0 N 0 Y N N Power Power en 336,337,338,342,343,345,347,348 A N 0 find_products text slider 1744616983 1744619148 26020 120.00 mdc_power
1043 0 S 0 Y N N Price Types Price Types en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744616118 1744616118 23789 mdc_pricetypes
1053 0 S 0 Y N N Providers Providers en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744616121 1744616121 24073 mdc_providers
1104 0 S 0 Y N N Seating Groups Seating Groups en 343 A N 0 find_products text checkbox 1744617012 1744617012 25658 mdc_seating_groups
1156 0 N 0 Y N N Standing Height Standing Height en 343 A N 0 find_products text slider 1744957586 1744957586 26394 1500.00 mdc_standing_height
1083 0 S 0 Y N N Support load Support load en 338,343,345,348 A N 0 find_products text checkbox 1744616993 1744616993 25545 mdc_support_load
1060 0 N 0 Y N N Tank Size Tank Size en 336,337,338,342,343,345,347,348 A N 0 find_products text slider 1744616983 1744616983 25427 100.00 mdc_tank_size
1068 0 S 0 Y N N Trailer coupling type Trailer coupling type en 337,338,341,343,347 A N 0 find_products text checkbox 1744616986 1744616986 25464 mdc_trailercouplingtypes
1085 0 S 0 Y N N Trailer hitch Trailer hitch en 338,343 A N 0 find_products text checkbox 1744616993 1744616993 25553 mdc_trailer_hitch
1081 0 S 0 Y N N Trailer load braked from Trailer load braked from en 338,343,348 A N 0 find_products text checkbox 1744616993 1744616993 25529 mdc_tlb_from
1082 0 S 0 Y N N Trailer load unbraked from Trailer load unbraked from en 338,343,348 A N 0 find_products text checkbox 1744616993 1744616993 25540 mdc_tlub_from
1109 0 S 0 Y N N Types of bed Types of bed en 343 A N 0 find_products text checkbox 1744617012 1744617012 25694 mdc_types_of_bed
1045 0 S 0 Y N N Vehicle condition Vehicle condition en 335,336,337,338,339,340,341,342,343,344,345,346,347,348 A N 0 find_products text checkbox 1744616119 1744616119 23802 mdc_conditions
1153 0 N 0 Y N N Vehicle Length Vehicle Length en 343 A N 0 find_products text slider 1744957586 1744957586 26395 2000.00 mdc_vehicle_length
1154 0 N 0 Y N N Width Width en 343 A N 0 find_products text slider 1744957586 1744957586 26396 2000.00 mdc_width