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, 
  q_product_features_descriptions.description, 
  q_product_features_descriptions.lang_code, 
  q_product_features_descriptions.prefix, 
  q_product_features_descriptions.suffix, 
  pf.categories_path, 
  q_product_features_descriptions.full_description, 
  pf.status, 
  pf.comparison, 
  pf.position, 
  pf.purpose, 
  pf.feature_style, 
  pf.filter_style, 
  pf_groups.position AS group_position, 
  q_product_features_values.value, 
  q_product_features_values.variant_id, 
  q_product_features_values.value_int 
FROM 
  q_product_features AS pf 
  LEFT JOIN q_product_features AS pf_groups ON pf.parent_id = pf_groups.feature_id 
  LEFT JOIN q_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 q_product_features_descriptions ON q_product_features_descriptions.feature_id = pf.feature_id 
  AND q_product_features_descriptions.lang_code = 'en' 
  INNER JOIN q_product_features_values ON q_product_features_values.feature_id = pf.feature_id 
  AND q_product_features_values.product_id = 13601 
  AND q_product_features_values.lang_code = 'en' 
WHERE 
  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.display_on_product = 'Y' 
  AND (
    pf.categories_path = '' 
    OR ISNULL(pf.categories_path) 
    OR FIND_IN_SET(12, pf.categories_path) 
    OR FIND_IN_SET(13, pf.categories_path) 
    OR FIND_IN_SET(44, pf.categories_path) 
    OR FIND_IN_SET(46, pf.categories_path) 
    OR FIND_IN_SET(298, pf.categories_path)
  ) 
GROUP BY 
  pf.feature_id 
ORDER BY 
  group_position, 
  pf_groups_description.description, 
  pf_groups.feature_id, 
  pf.position, 
  q_product_features_descriptions.description, 
  pf.feature_id

Query time 0.00170

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.56"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "q_product_features_values",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "fl",
                "lang_code",
                "product_id",
                "fpl"
              ],
              "key": "product_id",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "const"
              ],
              "rows_examined_per_scan": 10,
              "rows_produced_per_join": 5,
              "filtered": "56.37",
              "cost_info": {
                "read_cost": "10.00",
                "eval_cost": "1.13",
                "prefix_cost": "12.00",
                "data_read_per_join": "4K"
              },
              "used_columns": [
                "feature_id",
                "product_id",
                "variant_id",
                "value",
                "value_int",
                "lang_code"
              ],
              "attached_condition": "(`portal`.`q_product_features_values`.`lang_code` = 'en')"
            }
          },
          {
            "table": {
              "table_name": "pf",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "status"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id"
              ],
              "key_length": "3",
              "ref": [
                "portal.q_product_features_values.feature_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "8.49",
              "cost_info": {
                "read_cost": "5.64",
                "eval_cost": "0.10",
                "prefix_cost": "18.76",
                "data_read_per_join": "206"
              },
              "used_columns": [
                "feature_id",
                "company_id",
                "feature_type",
                "categories_path",
                "parent_id",
                "display_on_product",
                "display_on_catalog",
                "display_on_header",
                "status",
                "position",
                "comparison",
                "purpose",
                "feature_style",
                "filter_style"
              ],
              "attached_condition": "((`portal`.`pf`.`feature_type` <> 'G') and (`portal`.`pf`.`status` = 'A') and (`portal`.`pf`.`display_on_product` = 'Y') and ((`portal`.`pf`.`categories_path` = '') or isnull(`portal`.`pf`.`categories_path`) or find_in_set(12,`portal`.`pf`.`categories_path`) or find_in_set(13,`portal`.`pf`.`categories_path`) or find_in_set(44,`portal`.`pf`.`categories_path`) or find_in_set(46,`portal`.`pf`.`categories_path`) or find_in_set(298,`portal`.`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": [
                "portal.pf.parent_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "19.00",
              "cost_info": {
                "read_cost": "0.48",
                "eval_cost": "0.02",
                "prefix_cost": "19.34",
                "data_read_per_join": "39"
              },
              "used_columns": [
                "feature_id",
                "status",
                "position"
              ],
              "attached_condition": "<if>(found_match(pf_groups), ((`portal`.`pf_groups`.`status` = 'A') or isnull(`portal`.`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": [
                "portal.pf.parent_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.09",
                "eval_cost": "0.02",
                "prefix_cost": "19.45",
                "data_read_per_join": "142"
              },
              "used_columns": [
                "feature_id",
                "description",
                "lang_code"
              ]
            }
          },
          {
            "table": {
              "table_name": "q_product_features_descriptions",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "portal.q_product_features_values.feature_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.09",
                "eval_cost": "0.02",
                "prefix_cost": "19.56",
                "data_read_per_join": "142"
              },
              "used_columns": [
                "feature_id",
                "description",
                "full_description",
                "prefix",
                "suffix",
                "lang_code"
              ]
            }
          }
        ]
      }
    }
  }
}

Result

feature_id company_id feature_type parent_id display_on_product display_on_catalog display_on_header description lang_code prefix suffix categories_path full_description status comparison position purpose feature_style filter_style group_position value variant_id value_int
2 0 E 1 Y Y Y Brand en A N 0 organize_catalog brand checkbox 1 7613
10 0 S 1 Y N N Color en A N 2 group_variation_catalog_item dropdown checkbox 1 157
6 0 S 1 Y Y Y Department en A N 6 find_products text checkbox 1 3