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 = 2040 
  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.00115

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": 31,
          "filtered": 100,
          "attached_condition": "cscart_settings_objects.section_id <=> 2040 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
14886 registration_verification_enabled 2040 2043 C 0 N registration_verification_enabled Y
14879 api_key 2040 2042 I 0 N api_key NCSFA5CFLR9LAQS8
14899 parts_rfq_enabled 2040 2044 C 0 N parts_rfq_enabled N
14875 enabled 2040 2041 C 0 N enabled Y
14887 vendor_registration_verification_enabled 2040 2043 C 10 N vendor_registration_verification_enabled Y
14880 api_secret 2040 2042 P 10 N api_secret BO2OCLJYVEED3IMZKOS9LPZM9RORP1WI
14876 allowed_storefront_ids 2040 2041 I 10 N allowed_storefront_ids 4
14900 vendor_parts_request_template_id 2040 2044 I 10 N vendor_parts_request_template_id KA01TP260906152736579bfTdBCH5UW5
14888 otp_template_id 2040 2043 I 20 N otp_template_id KA01TP260821201849765RWHuPFEdF6P
14881 channel_id 2040 2042 I 20 N channel_id KA01PF260821185054981T7mUn5e8uFn
14877 admin_user_ids 2040 2041 I 20 N admin_user_ids 1
14901 customer_parts_found_template_id 2040 2044 I 20 N customer_parts_found_template_id KA01TP260906152737943XaUthMPisfv
14902 action_token_ttl_minutes 2040 2044 I 30 N action_token_ttl_minutes 1440
14889 existing_customer_verification_enabled 2040 2043 C 30 N existing_customer_verification_enabled Y
14882 sender_number 2040 2042 I 30 N sender_number 07045807498
14878 vendor_recipient_mode 2040 2041 S 30 N vendor_recipient_mode owner
14890 existing_customer_otp_template_id 2040 2043 I 40 N existing_customer_otp_template_id KA01TP2609041235163851osi7ATLSwD
14883 webhook_secret 2040 2042 P 40 N webhook_secret 54e30372bda75d8abadce215c77f5c82e378fe852010e1d62e6e3f2810585eac
14903 vehicle_intake_enabled 2040 2044 C 40 N vehicle_intake_enabled N
14884 cron_key 2040 2042 P 50 N cron_key c30753880ec43eff828294736cc1b3102ce8046892031bebeb351a0e0ba3c11b
14891 phone_change_verification_enabled 2040 2043 C 50 N phone_change_verification_enabled N
14904 repair_rfq_enabled 2040 2044 C 50 N repair_rfq_enabled N
14885 phone_retention_days 2040 2042 I 60 N phone_retention_days 30
14892 phone_change_otp_template_id 2040 2043 I 60 N phone_change_otp_template_id KA01TP260909142856137AoYOXYdU7GB
14905 repair_customer_received_template_id 2040 2044 I 60 N repair_customer_received_template_id KA01TP260906212947784b32tbVPYhfT
14893 password_change_verification_enabled 2040 2043 C 70 N password_change_verification_enabled Y
14906 repair_shop_request_template_id 2040 2044 I 70 N repair_shop_request_template_id KA01TP260906212948104uPRtC3ey1cs
14894 password_change_otp_template_id 2040 2043 I 80 N password_change_otp_template_id KA01TP260909163840921lDm3u8uaIcg
14907 repair_customer_quote_template_id 2040 2044 I 80 N repair_customer_quote_template_id KA01TP260906212948350lHZyXVHGTXy
14895 otp_ttl_minutes 2040 2043 I 90 N otp_ttl_minutes 5
14896 otp_resend_seconds 2040 2043 I 100 N otp_resend_seconds 60
14897 otp_max_attempts 2040 2043 I 110 N otp_max_attempts 5
14898 otp_max_requests_hour 2040 2043 I 120 N otp_max_requests_hour 5