SELECT 
  cscart_images.*, 
  cscart_images_links.*, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_id AS images_image_id 
FROM 
  cscart_images_links 
  LEFT JOIN cscart_images ON cscart_images_links.detailed_id = cscart_images.image_id 
  LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id 
  AND cscart_common_descriptions.object_holder = 'images' 
  AND cscart_common_descriptions.lang_code = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'A' 
  AND cscart_images_links.object_id IN (
    3966, 37518, 37916, 3967, 3978, 3564, 
    3968, 9464
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00120

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "167.72"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "54.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id",
              "idx_object_type_type_position"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 54,
            "rows_produced_per_join": 54,
            "filtered": "100.00",
            "index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'A') and (`cscart_db`.`cscart_images_links`.`object_id` in (3966,37518,37916,3967,3978,3564,3968,9464)))",
            "cost_info": {
              "read_cost": "42.91",
              "eval_cost": "5.40",
              "prefix_cost": "48.31",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "cscart_db.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 54,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "29.47",
              "eval_cost": "5.40",
              "prefix_cost": "83.19",
              "data_read_per_join": "41K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "107",
            "ref": [
              "cscart_db.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 54,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "25.13",
              "eval_cost": "5.40",
              "prefix_cost": "113.72",
              "data_read_per_join": "32K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`cscart_images`.`image_id`), true)"
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res pair_id object_id object_type detailed_id type position alt images_image_id
0 8.2_1rry-gl.jpg 1080 1440 N 27242 9464 product 28594 A 1 28594
0 1_qi8h-yc.jpg 1840 2130 N 45000 3978 product 46352 A 1 46352
0 Ultra_light_invisible_Sun_1_67b72102-93e5-431f-8ca7-450eec05fe5a.jpg 800 1067 N 166372 37916 product 167721 A 1 167721
0 8.3_qk19-5p.jpg 1100 1440 N 27243 9464 product 28595 A 2 28595
0 2_40ad-pc.jpg 1840 2130 N 45001 3978 product 46353 A 2 46353
0 Ultra_light_invisible_Sun_3.jpg 800 1067 N 166373 37916 product 167722 A 2 167722
0 8.4_yrpy-5t.jpg 1100 1440 N 27244 9464 product 28596 A 3 28596
0 3_6ezn-f1.jpg 1840 2130 N 45002 3978 product 46354 A 3 46354
0 Ultra_light_invisible_Sun_4.jpg 800 1067 N 166374 37916 product 167723 A 3 167723
0 8.5_1p2s-05.jpg 1100 1440 N 27245 9464 product 28597 A 4 28597
0 4_g3gl-5g.jpg 1840 2130 N 45003 3978 product 46355 A 4 46355
0 Ultra_light_invisible_Sun_7.jpg 800 1067 N 166375 37916 product 167724 A 4 167724
0 8.6_j7sk-xx.jpg 1100 1440 N 27246 9464 product 28598 A 5 28598
0 5_jq5u-9b.jpg 1840 2130 N 45004 3978 product 46356 A 5 46356
0 Ultra_light_invisible_Sun_9.jpg 800 1067 N 166376 37916 product 167725 A 5 167725
0 8.7.jpg 1500 1500 N 27247 9464 product 28599 A 6 28599
0 6_ddn6-ru.jpg 1840 2130 N 45005 3978 product 46357 A 6 46357
0 Ultra_light_invisible_Sun_10.jpg 800 1067 N 166377 37916 product 167726 A 6 167726
0 COSRX_wmm4-87.jpg 595 842 N 25507 3978 product 26859 A 7 26859
0 The6_Peptid_Serum_1.jpg 800 1067 N 163689 37518 product 165041 A 7 165041
0 Ultra_light_invisible_Sun_12.jpg 800 1067 N 166378 37916 product 167727 A 7 167727
0 Klairs010L_1.jpg 1840 2130 N 44654 3564 product 46006 A 8 46006
0 2_hr5n-5p.jpg 1840 2130 N 44949 3968 product 46301 A 8 46301
0 2_2rcw-oo.jpg 1840 2130 N 44955 3966 product 46307 A 8 46307
0 2_rb5f-eg.jpg 1840 2130 N 45031 3967 product 46383 A 8 46383
0 The6_Peptid_Serum_2.jpg 800 1067 N 163690 37518 product 165042 A 8 165042
0 Ultra_light_invisible_Sun_16.jpg 800 1067 N 166379 37916 product 167728 A 8 167728
0 Klairs010L_2.jpg 1840 2130 N 44655 3564 product 46007 A 9 46007
0 3_x354-3w.jpg 1840 2130 N 44950 3968 product 46302 A 9 46302
0 3_s7qr-uc.jpg 1840 2130 N 44956 3966 product 46308 A 9 46308
0 3_girb-zf.jpg 1840 2130 N 45032 3967 product 46384 A 9 46384
0 The6_Peptid_Serum_3.jpg 800 1067 N 163691 37518 product 165043 A 9 165043
0 Klairs010L_3.jpg 1840 2130 N 44656 3564 product 46008 A 10 46008
0 4_xyxh-we.jpg 1840 2130 N 44951 3968 product 46303 A 10 46303
0 4_iuf9-ws.jpg 1840 2130 N 44957 3966 product 46309 A 10 46309
0 4_eaip-r1.jpg 1840 2130 N 45033 3967 product 46385 A 10 46385
0 The6_Peptid_Serum_4.jpg 800 1067 N 163692 37518 product 165044 A 10 165044
0 Klairs010_4.jpg 1840 2130 N 44657 3564 product 46009 A 11 46009
0 5_1p6j-2q.jpg 1840 2130 N 44952 3968 product 46304 A 11 46304
0 5_mj13-0y.jpg 1840 2130 N 44958 3966 product 46310 A 11 46310
0 5_jr12-jv.jpg 1840 2130 N 45034 3967 product 46386 A 11 46386
0 The6_Peptid_Serum_5.jpg 800 1067 N 163693 37518 product 165045 A 11 165045
0 Klairs010_5.jpg 1837 2130 N 44658 3564 product 46010 A 12 46010
0 6_xeze-ul.jpg 1840 2130 N 44953 3968 product 46305 A 12 46305
0 6_oo6p-ze.jpg 1840 2130 N 44959 3966 product 46311 A 12 46311
0 6_zys0-n3.jpg 1840 2130 N 45035 3967 product 46387 A 12 46387
0 The6_Peptid_Serum_9.jpg 800 1067 N 163694 37518 product 165046 A 12 165046
0 COSRX_dxin-tq.jpg 595 842 N 25502 3968 product 26854 A 13 26854
0 COSRX_wpkr-0u.jpg 595 842 N 25504 3966 product 26856 A 13 26856
0 COSRX_juqv-4v.jpg 595 842 N 25509 3967 product 26861 A 13 26861
0 Klairs010_6.jpg 1838 2130 N 44659 3564 product 46011 A 13 46011
0 COSRX_4myw-l5_x65z-j9.jpg 595 842 N 173304 37518 product 174650 A 13 174650
0 Klairs010_7.jpg 1839 2130 N 44660 3564 product 46012 A 14 46012
0 Dear-Klairs_ugdp-hu.jpg 2480 3508 N 214530 3564 product 215805 A 16 215805