SELECT 
  cscart_images_links.*, 
  cscart_images.image_path, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_x, 
  cscart_images.image_y, 
  cscart_images.image_id as images_image_id 
FROM 
  cscart_images_links 
  LEFT JOIN cscart_images ON cscart_images_links.image_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 = 'ro' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'A' 
  AND cscart_images_links.object_id IN (
    1877564, 1231645, 1231180, 1283561, 
    1162511, 1231908, 1162375, 1231723, 
    1231628, 1162915, 1444141, 1232095, 
    1231907, 1231559, 1231072, 1231626, 
    1629452, 1162423, 1221276, 1162412, 
    1221274, 1129584, 2659440, 1915661
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00171

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "216.55"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "44.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": 44,
            "rows_produced_per_join": 44,
            "filtered": "100.00",
            "index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'A') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1877564,1231645,1231180,1283561,1162511,1231908,1162375,1231723,1231628,1162915,1444141,1232095,1231907,1231559,1231072,1231626,1629452,1162423,1221276,1162412,1221274,1129584,2659440,1915661)))",
            "cost_info": {
              "read_cost": "71.55",
              "eval_cost": "4.40",
              "prefix_cost": "75.95",
              "data_read_per_join": "4K"
            },
            "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": "3",
            "ref": [
              "maniamall_cscart.cscart_images_links.image_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 44,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "43.94",
              "eval_cost": "4.40",
              "prefix_cost": "124.29",
              "data_read_per_join": "33K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`image_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
          }
        },
        {
          "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": [
              "maniamall_cscart.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 44,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "43.86",
              "eval_cost": "4.40",
              "prefix_cost": "172.55",
              "data_read_per_join": "26K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`maniamall_cscart`.`cscart_common_descriptions`.`object_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
          }
        }
      ]
    }
  }
}

Result

pair_id object_id object_type image_id detailed_id type position image_path alt image_x image_y images_image_id
1992135 1232095 product 0 1992387 A 0
1992136 1232095 product 0 1992388 A 0
1992137 1232095 product 0 1992389 A 0
1992138 1232095 product 0 1992390 A 0
1992139 1232095 product 0 1992391 A 0
1992140 1232095 product 0 1992392 A 0
1992141 1232095 product 0 1992393 A 0
1992142 1232095 product 0 1992394 A 0
2086972 1283561 product 0 2087224 A 0
2711718 1444141 product 0 2711971 A 0
2711719 1444141 product 0 2711972 A 0
2711720 1444141 product 0 2711973 A 0
2711721 1444141 product 0 2711974 A 0
2711722 1444141 product 0 2711975 A 0
2711723 1444141 product 0 2711976 A 0
3540584 1629452 product 0 3540837 A 0
3540585 1629452 product 0 3540838 A 0
3540586 1629452 product 0 3540839 A 0
3540587 1629452 product 0 3540840 A 0
4548774 1877564 product 0 4549027 A 0
4548775 1877564 product 0 4549028 A 0
4548776 1877564 product 0 4549029 A 0
4548777 1877564 product 0 4549030 A 0
6873037 2659440 product 0 6873290 A 0
6873038 2659440 product 0 6873291 A 0
6873039 2659440 product 0 6873292 A 0