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 (
    8215, 8200, 8318, 8312, 8349, 21158, 
    8360, 8585, 8387, 8406, 8398, 8320, 
    8392, 8330, 8181, 8457, 8465, 8479, 
    8481, 8485, 8484, 8420, 8513, 8552, 
    8278, 8248, 21142, 8619, 8381, 8472
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00617

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "158.25"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "30.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": 30,
            "rows_produced_per_join": 30,
            "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 (8215,8200,8318,8312,8349,21158,8360,8585,8387,8406,8398,8320,8392,8330,8181,8457,8465,8479,8481,8485,8484,8420,8513,8552,8278,8248,21142,8619,8381,8472)))",
            "cost_info": {
              "read_cost": "60.91",
              "eval_cost": "3.00",
              "prefix_cost": "63.91",
              "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": "3",
            "ref": [
              "maniamall_cscart.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 30,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "29.43",
              "eval_cost": "3.00",
              "prefix_cost": "96.34",
              "data_read_per_join": "22K"
            },
            "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": 30,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "28.91",
              "eval_cost": "3.00",
              "prefix_cost": "128.25",
              "data_read_per_join": "17K"
            },
            "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
928386 8181 category 0 928623 M 0 girofare-camioane.jpg 325 365 928623
928459 8200 category 0 928696 M 0 avertizoare-sonore-camioane.jpg 515 425 928696
928659 8215 category 0 928896 M 0 antifurt-motorina-camioane.jpg 750 750 928896
928848 8248 category 0 929085 M 0 reflectorizante-camioane.jpg 600 600 929085
929359 8278 category 0 929596 M 0 racorduri-bricheta--fise.jpg 598 350 929596
929605 8312 category 0 929842 M 0 cabluri-curent-camioane.jpg 750 612 929842
929642 8318 category 0 929879 M 0 cablu-vamal-camioane.jpg 360 239 929879
929669 8320 category 0 929906 M 0 filtru-cafea-12-24v.gif 600 600 929906
929749 8330 category 0 929986 M 0 furtune-umflat-roti.jpg 440 466 929986
929981 8349 category 0 930218 M 0 catadioptri-camioane--prisme.jpg 1000 1000 930218
930118 8360 category 0 930355 M 0 chingi-ancorare-camioane.jpg 800 398 930355
930497 8381 category 0 930734 M 0 transformatoare-camioane.jpg 750 750 930734
930957 8387 category 0 931194 M 0 cricuri-camioane.jpg 300 443 931194
931015 8392 category 0 931252 M 0 furtune-aer-camion.jpg 600 600 931252
931103 8398 category 0 931340 M 0 extinctoare-camioane.jpg 1000 1000 931340
931136 8406 category 0 931373 M 0 diagrame-tahograf.jpg 750 627 931373
931215 8420 category 0 931452 M 0 lazi-frigorifice-camioane.jpg 800 800 931452
932122 8457 category 0 932359 M 0 huse-volan-camioane.jpg 800 600 932359
932397 8465 category 0 932634 M 0 intrerupatoare-camioane.jpg 286 250 932634
932518 8472 category 0 932755 M 0 truse-medicale-camioane.jpg 400 266 932755
932580 8479 category 0 932817 M 0 lampa-stop-camion.jpg 750 595 932817
932591 8481 category 0 932828 M 0 lampi-cu-led-camioane.jpg 1000 1000 932828
932669 8484 category 0 932906 M 0 lampi-gabarit-cu-led-camioane.jpg 1000 1000 932906
932678 8485 category 0 932915 M 0 lampi-gabarit-cu-bec-camioane.jpg 1000 1000 932915
933888 8513 category 0 934125 M 0 oglinzi-camioane.jpg 800 800 934125
934647 8552 category 0 934884 M 0 proiectoare-camioane.jpg 600 528 934884
936322 8585 category 0 936559 M 0 covorase-interior-camioane.jpg 800 799 936559
937279 8619 category 0 937516 M 0 suport-nr-inmatriculare-camioane.jpg 800 787 937516
1655149 21142 category 0 1655387 M 0 stergatoare-parbriz-camioane.jpg 1000 1000 1655387
1655381 21158 category 0 1655619 M 0 cheie-roti-camion.jpg 400 400 1655619