SELECT 
  a.shipping_id, 
  a.company_id, 
  a.min_weight, 
  a.max_weight, 
  a.position, 
  a.status, 
  a.tax_ids, 
  a.usergroup_ids, 
  b.shipping, 
  b.delivery_time, 
  c.company AS company_name, 
  storefront_id 
FROM 
  cscart_shippings AS a 
  LEFT JOIN cscart_shipping_descriptions AS b ON a.shipping_id = b.shipping_id 
  AND b.lang_code = 'en' 
  LEFT JOIN cscart_companies AS c ON c.company_id = a.company_id 
  LEFT JOIN cscart_storefronts_shippings AS storefronts_shippings ON storefronts_shippings.shipping_id = a.shipping_id 
WHERE 
  1 = 1 
  AND (
    a.company_id = 33 
    OR a.shipping_id IN (26) 
    AND a.company_id IN (0, 33)
  ) 
  AND (
    storefronts_shippings.storefront_id IN (1) 
    OR storefronts_shippings.storefront_id IS NULL
  ) 
ORDER BY 
  a.position

Query time 0.00820

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "9.13"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "3.88"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "storefronts_shippings",
            "access_type": "system",
            "rows_examined_per_scan": 0,
            "rows_produced_per_join": 1,
            "filtered": "0.00",
            "const_row_not_found": true,
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.10",
              "prefix_cost": "0.00",
              "data_read_per_join": "16"
            },
            "used_columns": [
              "storefront_id",
              "shipping_id"
            ]
          }
        },
        {
          "table": {
            "table_name": "a",
            "access_type": "ALL",
            "possible_keys": [
              "shipping_id"
            ],
            "rows_examined_per_scan": 37,
            "rows_produced_per_join": 3,
            "filtered": "10.49",
            "cost_info": {
              "read_cost": "4.09",
              "eval_cost": "0.39",
              "prefix_cost": "4.47",
              "data_read_per_join": "9K"
            },
            "used_columns": [
              "shipping_id",
              "company_id",
              "min_weight",
              "max_weight",
              "usergroup_ids",
              "tax_ids",
              "position",
              "status"
            ],
            "attached_condition": "((`wearethehelpful_scalesta_net`.`a`.`company_id` = 33) or ((`wearethehelpful_scalesta_net`.`a`.`shipping_id` = 26) and (`wearethehelpful_scalesta_net`.`a`.`company_id` in (0,33))))"
          }
        },
        {
          "table": {
            "table_name": "b",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "shipping_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "wearethehelpful_scalesta_net.a.shipping_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 3,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.39",
              "prefix_cost": "4.86",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "shipping_id",
              "lang_code",
              "shipping",
              "delivery_time"
            ]
          }
        },
        {
          "table": {
            "table_name": "c",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "company_id"
            ],
            "key_length": "4",
            "ref": [
              "wearethehelpful_scalesta_net.a.company_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 3,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.39",
              "prefix_cost": "5.25",
              "data_read_per_join": "27K"
            },
            "used_columns": [
              "company_id",
              "company"
            ]
          }
        }
      ]
    }
  }
}

Result

shipping_id company_id min_weight max_weight position status tax_ids usergroup_ids shipping delivery_time company_name storefront_id
26 0 0.000 2.000 0 A 6 0 Dook 3 - 5 days