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 (
    3288, 23734, 3214, 3211, 3388, 3289, 
    3304, 8095, 3156, 3221, 3195, 7905, 
    8122, 8082, 3302, 7889, 3405, 3161, 
    3160, 3340, 3280, 3250, 3342, 3173, 
    3213, 3413, 3255, 3383, 3175, 3316, 
    3196
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00142

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "166.05"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "31.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": 31,
            "rows_produced_per_join": 31,
            "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 (3288,23734,3214,3211,3388,3289,3304,8095,3156,3221,3195,7905,8122,8082,3302,7889,3405,3161,3160,3340,3280,3250,3342,3173,3213,3413,3255,3383,3175,3316,3196)))",
            "cost_info": {
              "read_cost": "64.32",
              "eval_cost": "3.10",
              "prefix_cost": "67.42",
              "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": 31,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "30.82",
              "eval_cost": "3.10",
              "prefix_cost": "101.34",
              "data_read_per_join": "23K"
            },
            "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": 31,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "30.61",
              "eval_cost": "3.10",
              "prefix_cost": "135.05",
              "data_read_per_join": "18K"
            },
            "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
107801 3156 category 0 108038 M 0 capace-si-valve.png 189 202 108038
107811 3160 category 0 108048 M 0 lampa-led-numar-dedicata.png 314 331 108048
107819 3161 category 0 108056 M 0 lampa-camion.jpg 1127 750 108056
107873 3173 category 0 108110 M 0 rola-varnis.jpg 350 384 108110
107883 3175 category 0 108120 M 0 stroboscoape.jpg 800 800 108120
108046 3195 category 0 108283 M 0 coliere-plastic.jpg 461 290 108283
108048 3196 category 0 108285 M 0 tobe.jpg 800 533 108285
108197 3211 category 0 108434 M 0 bara-portbagaj.jpg 280 280 108434
108231 3214 category 0 108468 M 0 banda-reflectorizanta.jpg 500 500 108468
108303 3221 category 0 108540 M 0 chinga.jpg 500 500 108540
108486 3250 category 0 108723 M 0 proiectoare.jpg 497 677 108723
108590 3255 category 0 108827 M 0 stergatoare-alca.jpg 600 600 108827
110080 3280 category 0 110317 M 0 oglinzi.jpg 267 400 110317
110144 3288 category 0 110381 M 0 abtibild.jpg 800 270 110381
110155 3289 category 0 110392 M 0 bullbar.png 800 432 110392
110303 3302 category 0 110540 M 0 furtun.jpg 458 458 110540
110364 3304 category 0 110601 M 0 camera-video-mansarier.jpg 282 282 110601
110461 3316 category 0 110698 M 0 suporti-numar.jpg 5380 2914 110698
110736 3340 category 0 110973 M 0 modul-smd.jpg 600 500 110973
110741 3342 category 0 110978 M 0 rola-ornament.jpg 357 285 110978
113666 3383 category 0 113903 M 0 stergatoare-luneta.jpg 600 450 113903
114154 3388 category 0 114391 M 0 brat-stergatoare-spate.jpg 941 474 114391
114619 3405 category 0 114856 M 0 grila-dedicata-cu-drl.jpg 800 600 114856
115839 3413 category 0 116076 M 0 stergatoare.jpg 800 600 116076
921218 7889 category 0 921455 M 0 girofar.jpg 800 533 921455
921312 7905 category 0 921549 M 0 cupla.jpg 800 281 921549
922858 8082 category 0 923095 M 0 diverse.jpg 1000 1000 923095
923904 8095 category 0 924141 M 0 camping.jpg 434 800 924141
924327 8122 category 0 924564 M 0 difuzor-bara-spate.jpg 800 582 924564
1697586 23734 category 0 1697824 M 0 abtibilde.jpg 600 600 1697824