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 (
    1128285, 1128289, 1129605, 1129852, 
    525901, 1128299, 1199097, 2055715, 
    1718556, 1128294, 1129606, 1444124, 
    1128290, 1199098, 1373431, 1722316, 
    1373435, 1373432, 1128108, 1199099, 
    1199095, 1129597, 1128097, 1129869, 
    1129863, 1128078, 1193387, 1198929, 
    1198866, 1129865, 1129867, 1198921, 
    1129873, 1129857, 1129861, 1129864, 
    2538988
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00416

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "311.30"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "63.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": 63,
            "rows_produced_per_join": 63,
            "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 (1128285,1128289,1129605,1129852,525901,1128299,1199097,2055715,1718556,1128294,1129606,1444124,1128290,1199098,1373431,1722316,1373435,1373432,1128108,1199099,1199095,1129597,1128097,1129869,1129863,1128078,1193387,1198929,1198866,1129865,1129867,1198921,1129873,1129857,1129861,1129864,2538988)))",
            "cost_info": {
              "read_cost": "103.93",
              "eval_cost": "6.30",
              "prefix_cost": "110.23",
              "data_read_per_join": "5K"
            },
            "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": 63,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "62.88",
              "eval_cost": "6.30",
              "prefix_cost": "179.40",
              "data_read_per_join": "48K"
            },
            "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": 63,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "62.60",
              "eval_cost": "6.30",
              "prefix_cost": "248.30",
              "data_read_per_join": "37K"
            },
            "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
817961 525901 product 0 818198 A 0
1788521 1128078 product 0 1788770 A 0
1788522 1128078 product 0 1788771 A 0
1788614 1128097 product 0 1788863 A 0
1788618 1128097 product 0 1788867 A 0
1792890 1128294 product 0 1793139 A 0
1792891 1128290 product 0 1793140 A 0
1792892 1128289 product 0 1793141 A 0
1793238 1129597 product 0 1793487 A 0
1793260 1129605 product 0 1793509 A 0
1793263 1129606 product 0 1793512 A 0
1793683 1129606 product 0 1793932 A 0
1793684 1129605 product 0 1793933 A 0
1793687 1128299 product 0 1793936 A 0
1793689 1128294 product 0 1793938 A 0
1793690 1128290 product 0 1793939 A 0
1793691 1128289 product 0 1793940 A 0
1793693 1128285 product 0 1793942 A 0
1793749 1129861 product 0 1793998 A 0
1793750 1129861 product 0 1793999 A 0
1793751 1129861 product 0 1794000 A 0
1793752 1129865 product 0 1794001 A 0
1793753 1129865 product 0 1794002 A 0
1793754 1129865 product 0 1794003 A 0
1793755 1129867 product 0 1794004 A 0
1793756 1129867 product 0 1794005 A 0
1793765 1129857 product 0 1794014 A 0
1793766 1129857 product 0 1794015 A 0
1795738 1129852 product 0 1795987 A 0
1795739 1129852 product 0 1795988 A 0
1795748 1129857 product 0 1795997 A 0
1795985 1129863 product 0 1796234 A 0
1795986 1129864 product 0 1796235 A 0
1795991 1129857 product 0 1796240 A 0
1795998 1129869 product 0 1796247 A 0
1795999 1129869 product 0 1796248 A 0
1796000 1129869 product 0 1796249 A 0
1796016 1129873 product 0 1796265 A 0
1932152 1199095 product 0 1932404 A 0
1932280 1199097 product 0 1932532 A 0
1932291 1199098 product 0 1932543 A 0
2356304 1373431 product 0 2356556 A 0
2710794 1444124 product 0 2711047 A 0
2710795 1444124 product 0 2711048 A 0
2710796 1444124 product 0 2711049 A 0
3663018 1199099 product 0 3663271 A 0
3897542 1718556 product 0 3897795 A 0
3912029 1722316 product 0 3912282 A 0
3912030 1722316 product 0 3912283 A 0
3912031 1722316 product 0 3912284 A 0
4918514 2055715 product 0 4918767 A 0
4918515 2055715 product 0 4918768 A 0
4918516 2055715 product 0 4918769 A 0
6557996 2538988 product 0 6558249 A 0
6557997 2538988 product 0 6558250 A 0
6557998 2538988 product 0 6558251 A 0