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 (3562, 34283, 10154, 3574, 38052) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00126

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "80.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "28.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": 28,
            "rows_produced_per_join": 28,
            "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 (3562,34283,10154,3574,38052)))",
            "cost_info": {
              "read_cost": "18.33",
              "eval_cost": "2.80",
              "prefix_cost": "21.13",
              "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": 28,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "14.15",
              "eval_cost": "2.80",
              "prefix_cost": "38.08",
              "data_read_per_join": "21K"
            },
            "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": 28,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "11.52",
              "eval_cost": "2.80",
              "prefix_cost": "52.41",
              "data_read_per_join": "16K"
            },
            "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 2_fxe2-09.jpg 596 698 N 166959 38052 product 168308 A 1 168308
0 Dear-Klairs_33sh-dg.jpg 2480 3508 N 214560 34283 product 215835 A 1 215835
0 3_5ahj-sz.jpg 600 700 N 166960 38052 product 168309 A 2 168309
0 4_mgys-ao.jpg 600 700 N 166961 38052 product 168310 A 3 168310
0 5_p9au-a3.jpg 600 700 N 166962 38052 product 168311 A 4 168311
0 6_o3z4-x9.jpg 600 700 N 166963 38052 product 168312 A 5 168312
0 Dear-Klairs_zlpt-35.jpg 2480 3508 N 214573 38052 product 215848 A 6 215848
0 Klairs_BB_2.jpg 1840 2130 N 46900 10154 product 48252 A 9 48252
0 Klairs009__2__xj9d-s7.jpg 1838 2130 N 46803 3562 product 48155 A 10 48155
0 Klairs_BB_3_qj7a-cp.jpg 1838 2130 N 46901 10154 product 48253 A 10 48253
0 Klairs009__3__fxk6-n3.jpg 1840 2130 N 46804 3562 product 48156 A 11 48156
0 MidnightBlueYouthActivatingDrop1_qd8k-8y.jpg 1840 2130 N 46852 3574 product 48204 A 11 48204
0 Klairs004_4_khen-tp.jpg 1840 2130 N 46902 10154 product 48254 A 11 48254
0 Klairs009__4__296p-qr.jpg 1840 2136 N 46805 3562 product 48157 A 12 48157
0 MidnightBlueYouthActivatingDrop_3.jpg 1840 2130 N 46853 3574 product 48205 A 12 48205
0 Klairs004_5.jpg 1838 2130 N 46903 10154 product 48255 A 12 48255
0 Klairs009__5__7on6-j2.jpg 1840 2136 N 46806 3562 product 48158 A 13 48158
0 Midnight_4.jpg 1841 2131 N 46854 3574 product 48206 A 13 48206
0 Klairs004_6_jpg.jpg 1839 2130 N 46904 10154 product 48256 A 13 48256
0 Klairs009__6__srmo-76.jpg 1840 2136 N 46807 3562 product 48159 A 14 48159
0 Midnight_5.jpg 1841 2131 N 46855 3574 product 48207 A 14 48207
0 Klairs009__7__xwuk-em.jpg 1840 2136 N 46808 3562 product 48160 A 15 48160
0 Midnight_6.jpg 1841 2131 N 46856 3574 product 48208 A 15 48208
0 Dear-Klairs_gwzc-i8.jpg 2480 3508 N 214543 10154 product 215818 A 15 215818
0 Klairs009__8__xfuw-c1.jpg 1840 2136 N 46809 3562 product 48161 A 16 48161
0 Midnight_7.jpg 1841 2131 N 46857 3574 product 48209 A 16 48209
0 Dear-Klairs_nrw2-o2.jpg 2480 3508 N 214521 3574 product 215796 A 18 215796
0 Dear-Klairs_ya4m-8n.jpg 2480 3508 N 214531 3562 product 215806 A 18 215806