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 = 'M' 
  AND cscart_images_links.object_id IN (
    7985, 7986, 8040, 9545, 13134, 13136, 
    13146, 15999, 16000, 16001, 19743, 
    19745, 19746, 19747, 19749, 19750, 
    19751, 19752, 19753, 19754, 29970, 
    29971, 64687, 69464
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00174

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "110.66"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "24.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": 24,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'M') and (`cscart_db`.`cscart_images_links`.`object_id` in (7985,7986,8040,9545,13134,13136,13146,15999,16000,16001,19743,19745,19746,19747,19749,19750,19751,19752,19753,19754,29970,29971,64687,69464)))",
            "cost_info": {
              "read_cost": "41.29",
              "eval_cost": "2.40",
              "prefix_cost": "43.69",
              "data_read_per_join": "2K"
            },
            "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": 24,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "19.93",
              "eval_cost": "2.40",
              "prefix_cost": "66.03",
              "data_read_per_join": "18K"
            },
            "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": 24,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "18.23",
              "eval_cost": "2.40",
              "prefix_cost": "86.66",
              "data_read_per_join": "14K"
            },
            "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 3_720x_0007_04_540x.png 540 540 N 20721 7985 product 22073 M 0 22073
0 2.2.png 540 540 N 20724 7986 product 22076 M 0 22076
0 Renee03.jpg 500 666 N 20995 8040 product 22347 M 0 22347
0 1_8vem-nh.png 1500 1291 N 46666 13134 product 48018 M 0 48018
0 1_jayn-ke.png 1500 1291 N 46680 13136 product 48032 M 0 48032
0 10.1.webp 1080 1080 N 46778 13146 product 48130 M 0 48130
0 main_fut1-wx.jpg 1080 1080 N 58580 15999 product 59932 M 0 59932
0 main_q7x4-cj.jpg 1080 1080 N 58588 16000 product 59940 M 0 59940
0 main_05q3-x3.jpg 1080 1080 N 58596 16001 product 59948 M 0 59948
0 1_of1z-ip.jpg 1500 1291 N 76463 19743 product 77815 M 0 77815
0 1_2xzn-28.jpg 1500 1291 N 76479 19745 product 77831 M 0 77831
0 1_5wc0-jb.jpg 1500 1291 N 76487 19746 product 77839 M 0 77839
0 1_080b-89.jpg 1500 1291 N 76488 19747 product 77840 M 0 77840
0 1_fnd7-ci.jpg 1500 1291 N 76511 19749 product 77863 M 0 77863
0 1_qmi3-p0.jpg 1500 1291 N 76519 19750 product 77871 M 0 77871
0 1_6ult-dt.jpg 1500 1291 N 76527 19751 product 77879 M 0 77879
0 1_8kla-ws.jpg 1500 1291 N 76535 19752 product 77887 M 0 77887
0 1_4em8-zu.jpg 1500 1291 N 76543 19753 product 77895 M 0 77895
0 1_s26h-42.jpg 1500 1291 N 76551 19754 product 77903 M 0 77903
0 JawBreakershopifyoptimised_1800x1800_eb02-4x.webp 1800 1800 N 114215 29970 product 115567 M 0 115567
0 Candycaneshopifyoptimised_1800x1800.webp 1800 1800 N 114223 29971 product 115575 M 0 115575
0 26fb772FAEBE00000138_1.jpg 1000 1000 N 173749 64687 product 175095 M 0 175095
0 uc_5suj-2i.jpg 4234 5006 N 207855 69464 product 209130 M 0 209130
0 1.1_y23j-1u.webp 707 704 N 65211 9545 product 66563 M 1 66563