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 = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    1108820, 1662156, 1231283, 1238164, 
    1108777, 1231569, 1232092, 1153203, 
    1231511, 1231839, 1231181, 1231473, 
    1231261, 1232054, 1231519, 1231215, 
    1232020, 1231471, 1232163, 1231046, 
    1231691, 1232123, 1731742, 1231165, 
    1231463, 1129857, 1232130, 1231521, 
    1231988, 1231470, 1732098, 1231065, 
    1231233, 1232078, 1232342, 1231260
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00419

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "191.64"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "36.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": 36,
            "rows_produced_per_join": 36,
            "filtered": "100.00",
            "index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1108820,1662156,1231283,1238164,1108777,1231569,1232092,1153203,1231511,1231839,1231181,1231473,1231261,1232054,1231519,1231215,1232020,1231471,1232163,1231046,1231691,1232123,1731742,1231165,1231463,1129857,1232130,1231521,1231988,1231470,1732098,1231065,1231233,1232078,1232342,1231260)))",
            "cost_info": {
              "read_cost": "74.01",
              "eval_cost": "3.60",
              "prefix_cost": "77.61",
              "data_read_per_join": "3K"
            },
            "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": 36,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "35.57",
              "eval_cost": "3.60",
              "prefix_cost": "116.78",
              "data_read_per_join": "27K"
            },
            "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": 36,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "35.26",
              "eval_cost": "3.60",
              "prefix_cost": "155.64",
              "data_read_per_join": "21K"
            },
            "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
1742289 1108777 product 0 1742528 M 0 folie-carbon-3d-roz-1x127m-.jpg 650 650 1742528
1742348 1108820 product 0 1742587 M 0 folie-carbon-3d-albastru-1x15m-tehnologie-de-eliminare-a-bulelor-de-aer-.jpg 720 643 1742587
1793708 1129857 product 0 1793957 M 0 negru_banca.jpg 1088 1096 1793957
1857054 1153203 product 0 1857306 M 0 rama-adaptoare-2din-compatibil-kia-sportage-2016--negru-.jpg 800 600 1857306
1990710 1231046 product 0 1990962 M 0 manusi-nr9-colorate-mat-cu-manseta-lunga-12pcs-.png 682 455 1990962
1990734 1231065 product 0 1990986 M 0 set-motor-complet-43mm-pentru-drujba-5200-.jpg 1200 1200 1990986
1990852 1231165 product 0 1991104 M 0 camera-auto-165-175-18514-.png 682 455 1991104
1990870 1231181 product 0 1991122 M 0 zavor-lat-nr4-70mm-.png 682 455 1991122
1990913 1231215 product 0 1991165 M 0 manometru-hidrofor-radial-.jpg 682 455 1991165
1990931 1231233 product 0 1991183 M 0 furtun-pompa-gros-.png 682 455 1991183
1990963 1231260 product 0 1991215 M 0 furtun-pompier-20m-cu-capete-premium-.jpg 682 455 1991215
1990964 1231261 product 0 1991216 M 0 furtun-apa-refulare-flat-pvc-2-50m-.jpg 682 455 1991216
1990987 1231283 product 0 1991239 M 0 roata-pivotanta-portocalie-15-.jpg 682 454 1991239
1991222 1231463 product 0 1991474 M 0 angrenaj-unghiular-9d-26mm-pentru-motocositoare-.png 682 455 1991474
1991235 1231470 product 0 1991487 M 0 cap-superior-pentru-motocositoare-7t-26mm-.png 682 455 1991487
1991238 1231471 product 0 1991490 M 0 cap-superior-pentru-motocositoare-9t-26mm-.png 682 455 1991490
1991244 1231473 product 0 1991496 M 0 carcasa-ambreiaj-pentru-motocositoare-9d-26mm-.png 682 455 1991496
1991333 1231511 product 0 1991585 M 0 maner-acceleratie-mtc-mic-cg430-.png 682 455 1991585
1991347 1231519 product 0 1991599 M 0 set-mufe-3pcs-motopompa-redusa-2-1-.jpg 682 455 1991599
1991350 1231521 product 0 1991602 M 0 kit-reparatie-angrenaj-9d-26mm-.jpg 682 455 1991602
1991413 1231569 product 0 1991665 M 0 pompa-stropit-manuala-ieftina-16l-pandora-.jpg 682 455 1991665
1991556 1231691 product 0 1991808 M 0 fir-trimer-rotund-16mm-x-15m-.jpg 682 454 1991808
1991778 1231839 product 0 1992030 M 0 manusi-spuma-verzi-rosii-12pcs-.png 682 455 1992030
1991996 1231988 product 0 1992248 M 0 cuplaj-de-conectare-banda-picurare-cu-tub-lay-flat-.jpg 682 455 1992248
1992039 1232020 product 0 1992291 M 0 cultivator-28mm9t-pentru-motocositoare-.png 682 455 1992291
1992091 1232054 product 0 1992343 M 0 cleste-dezizolat-cablu-coaxial-telefon-utp-.jpg 682 454 1992343
1992115 1232078 product 0 1992367 M 0 lama-foarfec-crengi-micul-fermier-.jpg 682 455 1992367
1992130 1232092 product 0 1992382 M 0 ulei-lant-drujba-premium-1l-.jpg 682 454 1992382
1992215 1232123 product 0 1992467 M 0 fir-trimermtc-helix-2mm-x-15m-.jpg 682 454 1992467
1992255 1232130 product 0 1992507 M 0 fir-trimermtc-cu-insertie-metalica-10m-24mm-.jpg 682 454 1992507
1992312 1232163 product 0 1992564 M 0 prescontrol-automat-epc-4-.jpg 1200 1200 1992564
1992557 1232342 product 0 1992809 M 0 cot-compres-redus-3225-10bucpg-.jpg 1200 1200 1992809
2007128 1238164 product 0 2007380 M 0 set-stickere-manere-usa-mazda-culoare-alb-4-buc-maniastiker-.jpg 750 525 2007380
3647509 1662156 product 0 3647762 M 0 cablu-usb-20fisa-a---fisa-b-micro18-m-maniamall-cars.jpg 177 177 3647762
3946704 1731742 product 0 3946957 M 0 Abtibild-reflectorizant-5cm-X-40-T078-MRA36-150621-4.jpg Abtibild reflectorizant 5cm X 40 T078 MRA36-150621-4 600 600 3946957
3947249 1732098 product 0 3947502 M 0 Anulator-eroare-bec-ars--50W-8ohm-12V--H2502-MRA36-160321-7.jpg Anulator eroare bec ars 50W 8ohm 12V H2502 MRA36-160321-7 480 480 3947502