SELECT 
  cscart_settings_objects.object_id as object_id, 
  name, 
  section_id, 
  section_tab_id, 
  type, 
  position, 
  is_global, 
  cscart_settings_objects.name as description, 
  (
    CASE WHEN storefront_values.object_id IS NOT NULL THEN storefront_values.value ELSE cscart_settings_objects.value END
  ) AS value 
FROM 
  cscart_settings_objects 
  LEFT JOIN cscart_settings_vendor_values AS storefront_values ON storefront_values.object_id = cscart_settings_objects.object_id 
  AND storefront_values.storefront_id = 1 
  AND storefront_values.company_id = 0 
WHERE 
  1 
  AND section_id = 1978 
  AND (
    FIND_IN_SET(
      'STOREFRONT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'ROOT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'MVE:STOREFRONT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'MVE:ROOT', cscart_settings_objects.edition_type
    )
  ) 
  AND cscart_settings_objects.type <> 'H' 
ORDER BY 
  cscart_settings_objects.position

Query time 0.01002

JSON explain

{
  "query_block": {
    "select_id": 1,
    "read_sorted_file": {
      "filesort": {
        "sort_key": "cscart_settings_objects.position",
        "table": {
          "table_name": "cscart_settings_objects",
          "access_type": "ref",
          "possible_keys": ["section_id"],
          "key": "section_id",
          "key_length": "4",
          "used_key_parts": ["section_id"],
          "ref": ["const"],
          "rows": 77,
          "filtered": 100,
          "attached_condition": "cscart_settings_objects.section_id <=> 1978 and (find_in_set('STOREFRONT',cscart_settings_objects.edition_type) or find_in_set('ROOT',cscart_settings_objects.edition_type) or find_in_set('MVE:STOREFRONT',cscart_settings_objects.edition_type) or find_in_set('MVE:ROOT',cscart_settings_objects.edition_type)) and cscart_settings_objects.`type` <> 'H'"
        }
      }
    },
    "table": {
      "table_name": "storefront_values",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY", "storefront_id", "company_id"],
      "key": "PRIMARY",
      "key_length": "11",
      "used_key_parts": ["object_id", "company_id", "storefront_id"],
      "ref": ["devmotorsbay.cscart_settings_objects.object_id", "const", "const"],
      "rows": 1,
      "filtered": 100
    }
  }
}

Result

object_id name section_id section_tab_id type position is_global description value
14555 ffmpeg_path 1978 1982 I 0 N ffmpeg_path /usr/bin/ffmpeg
14545 r2_enabled 1978 1981 C 0 N r2_enabled Y
14541 ai_background_enabled 1978 1980 C 0 N ai_background_enabled Y
14537 script_model 1978 1979 I 0 N script_model gpt-4o-mini
14590 instagram_enabled 1978 1985 C 0 N instagram_enabled Y
14596 youtube_enabled 1978 1986 C 0 N youtube_enabled N
14569 frontend_enabled 1978 1983 C 0 N frontend_enabled Y
14573 auto_enabled 1978 1984 C 0 N auto_enabled N
14556 ffprobe_path 1978 1982 I 10 N ffprobe_path /usr/bin/ffprobe
14546 r2_account_id 1978 1981 I 10 N r2_account_id de9839eb0113fe02fa1768eba6457885
14542 image_generation_provider 1978 1980 I 10 N image_generation_provider openai
14538 tts_model 1978 1979 I 10 N tts_model gpt-4o-mini-tts
14591 instagram_api_base 1978 1985 I 10 N instagram_api_base https://graph.instagram.com
14570 public_base_url 1978 1983 I 10 N public_base_url
14574 auto_composition_mode 1978 1984 S 10 N auto_composition_mode single_focus
14597 youtube_client_id 1978 1986 I 10 N youtube_client_id
14557 default_duration 1978 1982 S 20 N default_duration 30
14547 r2_bucket 1978 1981 I 20 N r2_bucket motorsbay
14543 image_generation_model 1978 1980 I 20 N image_generation_model gpt-image-1-mini
14539 tts_voice 1978 1979 S 20 N tts_voice cedar
14592 instagram_api_version 1978 1985 I 20 N instagram_api_version v26.0
14571 feed_page_size 1978 1983 I 20 N feed_page_size 24
14575 auto_selection_mode 1978 1984 S 20 N auto_selection_mode latest
14598 youtube_client_secret 1978 1986 P 20 N youtube_client_secret
14558 max_images 1978 1982 I 30 N max_images 8
14548 r2_access_key_id 1978 1981 P 30 N r2_access_key_id a39c330a90081965161ff63fd7fab34e
14544 image_generation_quality 1978 1980 S 30 N image_generation_quality low
14540 voice_instructions 1978 1979 T 30 N voice_instructions
14593 instagram_user_id 1978 1985 I 30 N instagram_user_id 17841441134656946
14572 sitemap_enabled 1978 1983 C 30 N sitemap_enabled Y
14576 auto_product_count 1978 1984 I 30 N auto_product_count 2
14599 youtube_refresh_token 1978 1986 P 30 N youtube_refresh_token
14559 render_on_create 1978 1982 C 40 N render_on_create Y
14549 r2_secret_access_key 1978 1981 P 40 N r2_secret_access_key 3b4da02a135e6739ff0faca429c876d3e607a4059c12c021a62e4958e0f9af15
14594 instagram_access_token 1978 1985 P 40 N instagram_access_token IGAA6LRvfvccNBZAGIzTm5NV2pseUJBVzMtMTVhdmlzN255WVZAUaTdKMzcyLUswYWx4RFpUM0c3Nkg3aFhHeTBYOU1nMU5GVERqVEZAxeFFDWVFGQmtKNWxnRDhCcE5LMmhaSm52U0djZAGlWMW4wZAk10OWN3
14577 auto_images_per_product 1978 1984 I 40 N auto_images_per_product 5
14600 youtube_privacy_status 1978 1986 S 40 N youtube_privacy_status private
14560 subtitles_enabled 1978 1982 C 50 N subtitles_enabled Y
14550 r2_public_base_url 1978 1981 I 50 N r2_public_base_url https://media-dev.motorsbay.net
14595 instagram_share_to_feed 1978 1985 C 50 N instagram_share_to_feed Y
14578 auto_total_scene_limit 1978 1984 I 50 N auto_total_scene_limit 20
14601 youtube_category_id 1978 1986 I 50 N youtube_category_id 2
14561 subtitle_font 1978 1982 I 60 N subtitle_font Gmarket Sans Medium
14551 r2_upload_max_mb 1978 1981 I 60 N r2_upload_max_mb 500
14579 auto_include_product_video 1978 1984 C 60 N auto_include_product_video Y
14562 subtitle_font_size 1978 1982 I 70 N subtitle_font_size 22
14552 r2_upload_expires 1978 1981 I 70 N r2_upload_expires 900
14580 auto_category_ids 1978 1984 I 70 N auto_category_ids
14563 subtitle_position 1978 1982 S 80 N subtitle_position bottom
14553 r2_store_generated_reels 1978 1981 C 80 N r2_store_generated_reels Y
14581 auto_fixed_product_ids 1978 1984 I 80 N auto_fixed_product_ids
14564 subtitle_margin_v 1978 1982 I 90 N subtitle_margin_v 90
14554 r2_keep_local_reels 1978 1981 C 90 N r2_keep_local_reels Y
14582 auto_company_id 1978 1984 I 90 N auto_company_id 0
14565 bgm_enabled 1978 1982 C 100 N bgm_enabled N
14583 auto_languages 1978 1984 I 100 N auto_languages ko
14566 bgm_volume 1978 1982 I 110 N bgm_volume 0.12
14584 auto_duration 1978 1984 S 110 N auto_duration 30
14567 logo_enabled 1978 1982 C 120 N logo_enabled Y
14585 auto_reuse_days 1978 1984 I 120 N auto_reuse_days 30
14586 auto_rotate_profiles 1978 1984 C 130 N auto_rotate_profiles Y
14568 logo_width 1978 1982 I 130 N logo_width 180
14587 auto_publish_frontend 1978 1984 C 140 N auto_publish_frontend N
14588 auto_publish_instagram 1978 1984 C 150 N auto_publish_instagram N
14589 auto_publish_youtube 1978 1984 C 160 N auto_publish_youtube N