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.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 = 'ro' 
WHERE 
  cscart_images_links.object_type = 'category' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    8164, 8161, 8163, 9766, 8750, 9765, 8162, 
    8670, 8733, 8158, 8157, 8160, 8741, 
    9767, 8668, 8763, 8731, 8734, 8165, 
    8732
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00286

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "107.25"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "20.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": 20,
            "rows_produced_per_join": 20,
            "filtered": "100.00",
            "index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'category') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (8164,8161,8163,9766,8750,9765,8162,8670,8733,8158,8157,8160,8741,9767,8668,8763,8731,8734,8165,8732)))",
            "cost_info": {
              "read_cost": "41.57",
              "eval_cost": "2.00",
              "prefix_cost": "43.57",
              "data_read_per_join": "1K"
            },
            "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.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 20,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "19.91",
              "eval_cost": "2.00",
              "prefix_cost": "65.47",
              "data_read_per_join": "15K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`detailed_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": 20,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "19.78",
              "eval_cost": "2.00",
              "prefix_cost": "87.25",
              "data_read_per_join": "11K"
            },
            "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
927401 8157 category 0 927638 M 0 lampa-led-numar-dedicata.jpg 500 500 927638
927501 8158 category 0 927738 M 0 lampa-camion.png 600 450 927738
927505 8160 category 0 927742 M 0 modul-smd.jpg 600 600 927742
927507 8161 category 0 927744 M 0 banda-led.jpg 500 500 927744
927837 8162 category 0 928074 M 0 chinga.jpg 600 600 928074
927846 8163 category 0 928083 M 0 banda-reflectorizanta.jpg 800 600 928083
927877 8164 category 0 928114 M 0 abtibild.jpg 500 500 928114
928070 8165 category 0 928307 M 0 tobe.jpg 800 600 928307
942494 8668 category 0 942731 M 0 senzori-parcare.jpg 800 600 942731
943414 8670 category 0 943651 M 0 coliere-plastic.jpg 301 484 943651
962889 8731 category 0 963126 M 0 stergatoare-luneta.jpg 600 450 963126
962983 8732 category 0 963220 M 0 universale.jpg 800 800 963220
963046 8733 category 0 963283 M 0 girofar.jpg 800 600 963283
963051 8734 category 0 963288 M 0 stroboscoape.jpg 4320 3240 963288
963511 8741 category 0 963748 M 0 proiectoare.jpg 800 600 963748
964099 8750 category 0 964336 M 0 bullbar.jpg 1024 678 964336
964771 8763 category 0 965008 M 0 stergatoare.jpg 1400 1400 965008
1092747 9765 category 0 1092984 M 0 capace-si-valve.jpg 434 600 1092984
1092839 9766 category 0 1093076 M 0 bara-portbagaj.jpg 640 140 1093076
1096193 9767 category 0 1096430 M 0 rola-ornament.jpg 220 220 1096430