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 (
    12594, 12604, 12599, 12598, 12597, 12596, 
    12595, 12424, 12454, 12439, 12429, 
    12434, 12428, 12427, 12426, 12425, 
    12554, 12569, 12584, 12559, 12564, 
    12555, 12556, 12557, 12558, 12536, 
    12541, 12538, 12537, 12540, 12539
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00172

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "83.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "35.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 35,
            "rows_produced_per_join": 35,
            "filtered": "100.00",
            "index_condition": "((`test2_gaseus`.`cscart_images_links`.`object_type` = 'product') and (`test2_gaseus`.`cscart_images_links`.`type` = 'M') and (`test2_gaseus`.`cscart_images_links`.`object_id` in (12594,12604,12599,12598,12597,12596,12595,12424,12454,12439,12429,12434,12428,12427,12426,12425,12554,12569,12584,12559,12564,12555,12556,12557,12558,12536,12541,12538,12537,12540,12539)))",
            "cost_info": {
              "read_cost": "20.01",
              "eval_cost": "3.50",
              "prefix_cost": "23.51",
              "data_read_per_join": "3K"
            },
            "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": [
              "test2_gaseus.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 35,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.75",
              "eval_cost": "3.50",
              "prefix_cost": "35.76",
              "data_read_per_join": "26K"
            },
            "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": "108",
            "ref": [
              "test2_gaseus.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 35,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.75",
              "eval_cost": "3.50",
              "prefix_cost": "48.01",
              "data_read_per_join": "20K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

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 1380699356-15468-1-3_600x600_2x.jpg 500 407 N 11896 12424 product 15379 M 0 15379
0 1380699356-15468-1-3_600x600_2x_5nz5-jd.jpg 500 407 N 11897 12425 product 15380 M 0 15380
0 1380699356-15468-1-3_600x600_2x_aa7i-tr.jpg 500 407 N 11898 12426 product 15381 M 0 15381
0 1380699356-15468-1-3_600x600_2x_tip3-nq.jpg 500 407 N 11899 12427 product 15382 M 0 15382
0 1380699356-15468-1-3_600x600_2x_e1jm-wt.jpg 500 407 N 11900 12428 product 15383 M 0 15383
0 1380699356-15468-1-3_600x600_2x_sg67-o0.jpg 500 407 N 11901 12429 product 15384 M 0 15384
0 1380699356-15468-1-3_600x600_2x_8rit-ul.jpg 500 407 N 11906 12434 product 15389 M 0 15389
0 1380699356-15468-1-3_600x600_2x_vxwl-pk.jpg 500 407 N 11911 12439 product 15394 M 0 15394
0 1380699356-15468-1-3_600x600_2x_qznl-3j.jpg 500 407 N 11926 12454 product 15409 M 0 15409
0 Thanos-L1_600x600.jpg 600 574 N 12008 12536 product 15491 M 0 15491
0 Thanos-L1_600x600_hc29-4o.jpg 600 574 N 12009 12537 product 15492 M 0 15492
0 Thanos-L1_600x600_npkf-is.jpg 600 574 N 12010 12538 product 15493 M 0 15493
0 Thanos-L1_600x600_gtg3-jd.jpg 600 574 N 12011 12539 product 15494 M 0 15494
0 Thanos-L1_600x600_adfg-2i.jpg 600 574 N 12012 12540 product 15495 M 0 15495
0 Thanos-L1_600x600_m7cw-og.jpg 600 574 N 12013 12541 product 15496 M 0 15496
0 1380701864-32684-1-2_600x600.jpg 500 451 N 12026 12554 product 15509 M 0 15509
0 1380701864-32684-1-2_600x600_ndzm-1h.jpg 500 451 N 12027 12555 product 15510 M 0 15510
0 1380701864-32684-1-2_600x600_9trw-iz.jpg 500 451 N 12028 12556 product 15511 M 0 15511
0 1380701864-32684-1-2_600x600_pfxs-py.jpg 500 451 N 12029 12557 product 15512 M 0 15512
0 1380701864-32684-1-2_600x600_wsda-2x.jpg 500 451 N 12030 12558 product 15513 M 0 15513
0 1380701864-32684-1-2_600x600_ykxu-31.jpg 500 451 N 12031 12559 product 15514 M 0 15514
0 1380701864-32684-1-2_600x600_glm2-5a.jpg 500 451 N 12036 12564 product 15519 M 0 15519
0 1380701864-32684-1-2_600x600_vui2-7p.jpg 500 451 N 12041 12569 product 15524 M 0 15524
0 1380701864-32684-1-2_600x600_yj6z-0x.jpg 500 451 N 12056 12584 product 15539 M 0 15539
0 1381127127-11093-1-2_600x600_2x.jpg 443 500 N 12066 12594 product 15549 M 0 15549
0 1381127127-11093-1-2_600x600_2x_1rj7-fu.jpg 443 500 N 12067 12595 product 15550 M 0 15550
0 1381127127-11093-1-2_600x600_2x_ity4-wg.jpg 443 500 N 12068 12596 product 15551 M 0 15551
0 1381127127-11093-1-2_600x600_2x_vrr2-df.jpg 443 500 N 12069 12597 product 15552 M 0 15552
0 1381127127-11093-1-2_600x600_2x_4tq2-2y.jpg 443 500 N 12070 12598 product 15553 M 0 15553
0 1381127127-11093-1-2_600x600_2x_ov5q-5t.jpg 443 500 N 12071 12599 product 15554 M 0 15554
0 1381127127-11093-1-2_600x600_2x_3fxx-2n.jpg 443 500 N 12076 12604 product 15559 M 0 15559