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 (
    11173, 11177, 11181, 11174, 11176, 11175, 
    11324, 11319, 11323, 11322, 11321, 
    11320, 11334, 11329, 11333, 11332, 
    11331, 11330, 11276, 11271, 11275, 
    11274, 11273, 11272, 11286, 11281, 
    11285, 11284, 11283, 11282, 11300, 
    11296, 11291, 11295, 11294, 11293, 
    11292, 11314, 11310, 11305, 11309, 
    11308, 11307, 11306, 11252, 11248, 
    11243, 11247, 11246, 11245, 11244, 
    11266, 11262, 11257, 11261, 11260, 
    11259, 11258, 11342, 11339, 11341, 
    11340, 11229, 11238, 11234, 11233, 
    11232, 11231, 11230, 11217, 11221, 
    11225, 11218, 11219, 11220
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00582

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "180.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "75.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": 75,
            "rows_produced_per_join": 75,
            "filtered": "100.00",
            "index_condition": "((`dev_yourmart_co_bw`.`cscart_images_links`.`object_type` = 'product') and (`dev_yourmart_co_bw`.`cscart_images_links`.`type` = 'M') and (`dev_yourmart_co_bw`.`cscart_images_links`.`object_id` in (11173,11177,11181,11174,11176,11175,11324,11319,11323,11322,11321,11320,11334,11329,11333,11332,11331,11330,11276,11271,11275,11274,11273,11272,11286,11281,11285,11284,11283,11282,11300,11296,11291,11295,11294,11293,11292,11314,11310,11305,11309,11308,11307,11306,11252,11248,11243,11247,11246,11245,11244,11266,11262,11257,11261,11260,11259,11258,11342,11339,11341,11340,11229,11238,11234,11233,11232,11231,11230,11217,11221,11225,11218,11219,11220)))",
            "cost_info": {
              "read_cost": "45.01",
              "eval_cost": "7.50",
              "prefix_cost": "52.51",
              "data_read_per_join": "7K"
            },
            "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": [
              "dev_yourmart_co_bw.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 75,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "18.75",
              "eval_cost": "7.50",
              "prefix_cost": "78.76",
              "data_read_per_join": "57K"
            },
            "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": [
              "dev_yourmart_co_bw.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 75,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "18.75",
              "eval_cost": "7.50",
              "prefix_cost": "105.01",
              "data_read_per_join": "44K"
            },
            "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 BEAUTY_SLEEP.jpg 1190 1683 N 10664 11173 product 11405 M 0 11405
0 BEAUTY_SLEEP_zlxb-op.jpg 1190 1683 N 10665 11174 product 11406 M 0 11406
0 BEAUTY_SLEEP_8z5b-m6.jpg 1190 1683 N 10666 11175 product 11407 M 0 11407
0 BEAUTY_SLEEP_lf9x-1m.jpg 1190 1683 N 10667 11176 product 11408 M 0 11408
0 BEAUTY_SLEEP_1qkd-89.jpg 1190 1683 N 10668 11177 product 11409 M 0 11409
0 BEAUTY_SLEEP_c1jk-fd.jpg 1190 1683 N 10672 11181 product 11413 M 0 11413
0 ST_LOUIS_oshz-wr.jpg 1190 1683 N 10734 11217 product 11475 M 0 11475
0 ST_LOUIS_nby4-kp.jpg 1190 1683 N 10735 11218 product 11476 M 0 11476
0 ST_LOUIS_8djb-e8.jpg 1190 1683 N 10736 11219 product 11477 M 0 11477
0 ST_LOUIS_hncc-ex.jpg 1190 1683 N 10737 11220 product 11478 M 0 11478
0 ST_LOUIS_c0up-3t.jpg 1190 1683 N 10738 11221 product 11479 M 0 11479
0 ST_LOUIS_wdti-om.jpg 1190 1683 N 10742 11225 product 11483 M 0 11483
0 SIESTA.jpg 1190 1683 N 10746 11229 product 11487 M 0 11487
0 SIESTA_dqv5-jh.jpg 1190 1683 N 10747 11230 product 11488 M 0 11488
0 SIESTA_etuk-7n.jpg 1190 1683 N 10748 11231 product 11489 M 0 11489
0 SIESTA_1ozk-uv.jpg 1190 1683 N 10749 11232 product 11490 M 0 11490
0 SIESTA_f808-yq.jpg 1190 1683 N 10750 11233 product 11491 M 0 11491
0 SIESTA_pbgm-he.jpg 1190 1683 N 10751 11234 product 11492 M 0 11492
0 SIESTA_k2j0-fm.jpg 1190 1683 N 10755 11238 product 11496 M 0 11496
0 SAVUTI.jpg 1190 1683 N 10760 11243 product 11501 M 0 11501
0 SAVUTI_1ekj-ok.jpg 1190 1683 N 10761 11244 product 11502 M 0 11502
0 SAVUTI_gur4-jt.jpg 1190 1683 N 10762 11245 product 11503 M 0 11503
0 SAVUTI_rkwc-yv.jpg 1190 1683 N 10763 11246 product 11504 M 0 11504
0 SAVUTI_nm0v-e8.jpg 1190 1683 N 10764 11247 product 11505 M 0 11505
0 SAVUTI_c3de-j3.jpg 1190 1683 N 10765 11248 product 11506 M 0 11506
0 SAVUTI_fept-sr.jpg 1190 1683 N 10769 11252 product 11510 M 0 11510
0 SAVUTI_2xlv-hc.jpg 1190 1683 N 10774 11257 product 11515 M 0 11515
0 SAVUTI_03be-se.jpg 1190 1683 N 10775 11258 product 11516 M 0 11516
0 SAVUTI_jlcb-7z.jpg 1190 1683 N 10776 11259 product 11517 M 0 11517
0 SAVUTI_slt0-uv.jpg 1190 1683 N 10777 11260 product 11518 M 0 11518
0 SAVUTI_szet-8x.jpg 1190 1683 N 10778 11261 product 11519 M 0 11519
0 SAVUTI_1jro-m9.jpg 1190 1683 N 10779 11262 product 11520 M 0 11520
0 SAVUTI_vk43-6l.jpg 1190 1683 N 10783 11266 product 11524 M 0 11524
0 HERITAGE.jpg 1190 1683 N 10788 11271 product 11529 M 0 11529
0 HERITAGE_7orf-rc.jpg 1190 1683 N 10789 11272 product 11530 M 0 11530
0 HERITAGE_02cn-t5.jpg 1190 1683 N 10790 11273 product 11531 M 0 11531
0 HERITAGE_lyi0-ab.jpg 1190 1683 N 10791 11274 product 11532 M 0 11532
0 HERITAGE_7yq3-l0.jpg 1190 1683 N 10792 11275 product 11533 M 0 11533
0 HERITAGE_58n6-s2.jpg 1190 1683 N 10793 11276 product 11534 M 0 11534
0 HERITAGE_d9kd-43.jpg 1190 1683 N 10798 11281 product 11539 M 0 11539
0 HERITAGE_c95i-jv.jpg 1190 1683 N 10799 11282 product 11540 M 0 11540
0 HERITAGE_qts7-ma.jpg 1190 1683 N 10800 11283 product 11541 M 0 11541
0 HERITAGE_4dap-5q.jpg 1190 1683 N 10801 11284 product 11542 M 0 11542
0 HERITAGE_wdry-6r.jpg 1190 1683 N 10802 11285 product 11543 M 0 11543
0 HERITAGE_1djr-ww.jpg 1190 1683 N 10803 11286 product 11544 M 0 11544
0 LEGACY.jpg 1190 1683 N 10808 11291 product 11549 M 0 11549
0 LEGACY_gky3-3o.jpg 1190 1683 N 10809 11292 product 11550 M 0 11550
0 LEGACY_cokh-ce.jpg 1190 1683 N 10810 11293 product 11551 M 0 11551
0 LEGACY_uf3k-dz.jpg 1190 1683 N 10811 11294 product 11552 M 0 11552
0 LEGACY_bphv-r8.jpg 1190 1683 N 10812 11295 product 11553 M 0 11553
0 LEGACY_2ls4-gm.jpg 1190 1683 N 10813 11296 product 11554 M 0 11554
0 LEGACY_k1yo-eh.jpg 1190 1683 N 10817 11300 product 11558 M 0 11558
0 LEGACY_k4yw-0n.jpg 1190 1683 N 10822 11305 product 11563 M 0 11563
0 LEGACY_apxr-nc.jpg 1190 1683 N 10823 11306 product 11564 M 0 11564
0 LEGACY_bfz1-2k.jpg 1190 1683 N 10824 11307 product 11565 M 0 11565
0 LEGACY_ocvb-6n.jpg 1190 1683 N 10825 11308 product 11566 M 0 11566
0 LEGACY_xlmd-y8.jpg 1190 1683 N 10826 11309 product 11567 M 0 11567
0 LEGACY_0thm-bk.jpg 1190 1683 N 10827 11310 product 11568 M 0 11568
0 LEGACY_p5il-ti.jpg 1190 1683 N 10831 11314 product 11572 M 0 11572
0 EMPEROR.jpg 1190 1683 N 10836 11319 product 11577 M 0 11577
0 EMPEROR_4cza-lp.jpg 1190 1683 N 10837 11320 product 11578 M 0 11578
0 EMPEROR_nupn-l3.jpg 1190 1683 N 10838 11321 product 11579 M 0 11579
0 EMPEROR_ri6r-ds.jpg 1190 1683 N 10839 11322 product 11580 M 0 11580
0 EMPEROR_m64q-db.jpg 1190 1683 N 10840 11323 product 11581 M 0 11581
0 EMPEROR_qic3-c9.jpg 1190 1683 N 10841 11324 product 11582 M 0 11582
0 EMPEROR_bmux-i5.jpg 1190 1683 N 10846 11329 product 11587 M 0 11587
0 EMPEROR_rcha-gc.jpg 1190 1683 N 10847 11330 product 11588 M 0 11588
0 EMPEROR_mezn-tz.jpg 1190 1683 N 10848 11331 product 11589 M 0 11589
0 EMPEROR_f5ck-yo.jpg 1190 1683 N 10849 11332 product 11590 M 0 11590
0 EMPEROR_iomp-2t.jpg 1190 1683 N 10850 11333 product 11591 M 0 11591
0 EMPEROR_eny1-ok.jpg 1190 1683 N 10851 11334 product 11592 M 0 11592
0 SENATOR.jpg 1190 1683 N 10856 11339 product 11597 M 0 11597
0 SENATOR_18d5-o6.jpg 1190 1683 N 10857 11340 product 11598 M 0 11598
0 SENATOR_5wxk-dq.jpg 1190 1683 N 10858 11341 product 11599 M 0 11599
0 SENATOR_hhap-qr.jpg 1190 1683 N 10859 11342 product 11600 M 0 11600