SELECT 
  a.variant_id, 
  a.option_id, 
  a.position, 
  a.modifier, 
  a.modifier_type, 
  a.weight_modifier, 
  a.weight_modifier_type, 
  a.point_modifier, 
  a.point_modifier_type, 
  b.variant_name, 
  IF(
    shared_option_variants.variant_id IS NOT NULL, 
    shared_option_variants.modifier, 
    a.modifier
  ) as modifier, 
  IF(
    shared_option_variants.variant_id IS NOT NULL, 
    shared_option_variants.modifier_type, 
    a.modifier_type
  ) as modifier_type 
FROM 
  cscart_product_option_variants as a 
  LEFT JOIN cscart_product_option_variants_descriptions as b ON a.variant_id = b.variant_id 
  AND b.lang_code = 'tr' 
  LEFT JOIN cscart_ult_product_option_variants shared_option_variants ON shared_option_variants.variant_id = a.variant_id 
  AND shared_option_variants.company_id = 1 
WHERE 
  a.option_id IN (
    251, 386, 444, 502, 235, 371, 429, 487, 
    205, 341, 399, 457, 220, 356, 414, 472, 
    231, 367, 425, 483, 143, 332, 333, 219, 
    355, 413, 471, 252, 387, 445, 503, 237, 
    373, 431, 489, 232, 368, 426, 484, 207, 
    343, 401, 459, 4156, 4167, 218, 354, 
    412, 470, 217, 353, 411, 469, 243, 379, 
    437, 495, 208, 344, 402, 460, 261, 396, 
    454, 512, 204, 340, 398, 456
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00265

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "331.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "101.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "shared_option_variants",
            "access_type": "system",
            "possible_keys": [
              "PRIMARY",
              "company_id"
            ],
            "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.20",
              "prefix_cost": "0.00",
              "data_read_per_join": "24"
            },
            "used_columns": [
              "variant_id",
              "company_id",
              "modifier",
              "modifier_type"
            ]
          }
        },
        {
          "table": {
            "table_name": "a",
            "access_type": "range",
            "possible_keys": [
              "status",
              "option_id",
              "option_id_2"
            ],
            "key": "option_id",
            "used_key_parts": [
              "option_id",
              "status"
            ],
            "key_length": "6",
            "rows_examined_per_scan": 101,
            "rows_produced_per_join": 101,
            "filtered": "100.00",
            "index_condition": "((`eshopuga_upgr_4122`.`a`.`option_id` in (251,386,444,502,235,371,429,487,205,341,399,457,220,356,414,472,231,367,425,483,143,332,333,219,355,413,471,252,387,445,503,237,373,431,489,232,368,426,484,207,343,401,459,4156,4167,218,354,412,470,217,353,411,469,243,379,437,495,208,344,402,460,261,396,454,512,204,340,398,456)) and (`eshopuga_upgr_4122`.`a`.`status` = 'A'))",
            "cost_info": {
              "read_cost": "190.21",
              "eval_cost": "20.20",
              "prefix_cost": "210.41",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "variant_id",
              "option_id",
              "position",
              "modifier",
              "modifier_type",
              "weight_modifier",
              "weight_modifier_type",
              "point_modifier",
              "point_modifier_type",
              "status"
            ]
          }
        },
        {
          "table": {
            "table_name": "b",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "eshopuga_upgr_4122.a.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 101,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "20.20",
              "prefix_cost": "230.61",
              "data_read_per_join": "77K"
            },
            "used_columns": [
              "variant_id",
              "lang_code",
              "variant_name"
            ]
          }
        }
      ]
    }
  }
}

Result

variant_id option_id position modifier modifier_type weight_modifier weight_modifier_type point_modifier point_modifier_type variant_name
748 332 0 0.000 A 0.000 A 0.000 A
758 340 0 0.000 A 0.000 A 0.000 A
760 341 0 0.000 A 0.000 A 0.000 A
764 343 0 0.000 A 0.000 A 0.000 A
766 344 0 0.000 A 0.000 A 0.000 A
784 353 0 0.000 A 0.000 A 0.000 A
786 354 0 0.000 A 0.000 A 0.000 A
788 355 0 0.000 A 0.000 A 0.000 A
790 356 0 0.000 A 0.000 A 0.000 A
812 367 0 0.000 A 0.000 A 0.000 A
814 368 0 0.000 A 0.000 A 0.000 A
820 371 0 0.000 A 0.000 A 0.000 A
824 373 0 0.000 A 0.000 A 0.000 A
836 379 0 0.000 A 0.000 A 0.000 A
850 386 0 0.000 A 0.000 A 0.000 A
852 387 0 0.000 A 0.000 A 0.000 A
870 396 0 0.000 A 0.000 A 0.000 A
874 398 0 0.000 A 0.000 A 0.000 A
876 399 0 0.000 A 0.000 A 0.000 A
880 401 0 0.000 A 0.000 A 0.000 A
882 402 0 0.000 A 0.000 A 0.000 A
900 411 0 0.000 A 0.000 A 0.000 A
902 412 0 0.000 A 0.000 A 0.000 A
904 413 0 0.000 A 0.000 A 0.000 A
906 414 0 0.000 A 0.000 A 0.000 A
928 425 0 0.000 A 0.000 A 0.000 A
930 426 0 0.000 A 0.000 A 0.000 A
936 429 0 0.000 A 0.000 A 0.000 A
940 431 0 0.000 A 0.000 A 0.000 A
952 437 0 0.000 A 0.000 A 0.000 A
966 444 0 0.000 A 0.000 A 0.000 A
968 445 0 0.000 A 0.000 A 0.000 A
986 454 0 0.000 A 0.000 A 0.000 A
747 332 1 2.000 A 0.000 A 0.000 A
757 340 1 9.000 A 0.000 A 0.000 A
759 341 1 9.000 A 0.000 A 0.000 A
763 343 1 9.000 A 0.000 A 0.000 A
765 344 1 9.000 A 0.000 A 0.000 A
783 353 1 9.000 A 0.000 A 0.000 A
785 354 1 9.000 A 0.000 A 0.000 A
787 355 1 9.000 A 0.000 A 0.000 A
789 356 1 9.000 A 0.000 A 0.000 A
811 367 1 9.000 A 0.000 A 0.000 A
813 368 1 9.000 A 0.000 A 0.000 A
819 371 1 9.000 A 0.000 A 0.000 A
823 373 1 9.000 A 0.000 A 0.000 A
835 379 1 9.000 A 0.000 A 0.000 A
849 386 1 9.000 A 0.000 A 0.000 A
851 387 1 9.000 A 0.000 A 0.000 A
869 396 1 9.000 A 0.000 A 0.000 A
873 398 1 2.000 A 0.000 A 0.000 A
875 399 1 2.000 A 0.000 A 0.000 A
879 401 1 2.000 A 0.000 A 0.000 A
881 402 1 2.000 A 0.000 A 0.000 A
899 411 1 2.000 A 0.000 A 0.000 A
901 412 1 2.000 A 0.000 A 0.000 A
903 413 1 2.000 A 0.000 A 0.000 A
905 414 1 2.000 A 0.000 A 0.000 A
927 425 1 2.000 A 0.000 A 0.000 A
929 426 1 2.000 A 0.000 A 0.000 A
935 429 1 2.000 A 0.000 A 0.000 A
939 431 1 2.000 A 0.000 A 0.000 A
951 437 1 2.000 A 0.000 A 0.000 A
965 444 1 2.000 A 0.000 A 0.000 A
967 445 1 2.000 A 0.000 A 0.000 A
985 454 1 2.000 A 0.000 A 0.000 A