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 (
    614832, 1232975, 588096, 880671, 1088508, 
    697953, 796373, 591739, 612280, 1120145, 
    695183, 600012, 614835, 1302601, 590335, 
    866417, 589124, 696523, 593274, 1232966, 
    1232977, 696950, 621062, 596399, 588307, 
    1434961, 590366, 697334, 590358, 594343, 
    866380, 1233023, 562160, 694679, 595794, 
    589041
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.19920

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "188.20"
    },
    "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 (614832,1232975,588096,880671,1088508,697953,796373,591739,612280,1120145,695183,600012,614835,1302601,590335,866417,589124,696523,593274,1232966,1232977,696950,621062,596399,588307,1434961,590366,697334,590358,594343,866380,1233023,562160,694679,595794,589041)))",
            "cost_info": {
              "read_cost": "71.95",
              "eval_cost": "3.60",
              "prefix_cost": "75.55",
              "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.22",
              "eval_cost": "3.60",
              "prefix_cost": "114.37",
              "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": "34.24",
              "eval_cost": "3.60",
              "prefix_cost": "152.20",
              "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
885085 562160 product 0 885322 M 0 kit-cabluri-audio-blow-aw300-pentru-masina-pentru-conectare-boxe-subwoofere-statii-amplificatoare-auto-.jpg 800 600 885322
928603 588096 product 0 928840 M 0 antena-auto-carpoint-din-fibra-de-sticla-flexibila-unghi-ajustabil-kft-auto.jpg 1000 1000 928840
928855 588307 product 0 929092 M 0 banda-reparatie-fibra-sticla-2k-t-rex-50mm-x-125m--banda-adeziva-kft-auto.jpg 399 500 929092
929658 589041 product 0 929895 M 0 cabluri-transfer-curent-baterii-carpoint--lungime-25m-grosime-cablu-25mm2-kft-auto.jpg 1364 1152 929895
929754 589124 product 0 929991 M 0 cap-planetara-audi-a4-a6-vw-passat-3b-skoda-superb-18-19tdi-spre-roata-kft-auto.jpg 640 428 929991
931024 590335 product 0 931261 M 0 cupla-aer-m10--mufa-rapida-cot-90-grade-plastic-kft-auto.jpg 1258 658 931261
931046 590358 product 0 931283 M 0 cupla-aer-m4--mufa-rapida-teu--plastic-kft-auto.jpg 1306 554 931283
931054 590366 product 0 931291 M 0 cupla-aer-m8--mufa-rapida-cot-90-grade-plastic-kft-auto.jpg 1035 588 931291
932505 591739 product 0 932742 M 0 kit-reparatie-mecanism-ridicare-geam-fata-vw-passat-b53b-1997-2005-electrica-fata-dreapta-cablu-role-si-suport-geam-kft-auto.jpg 1000 1000 932742
934076 593274 product 0 934313 M 0 palnie-combustibil-carpoint-rotunda-cu-furtun-flexibil-cu-sita-fina-impotriva-apei-din-combustibil-kft-auto.jpg 517 457 934313
935200 594343 product 0 935437 M 0 becuri-auto-philips-vision-12v-5w-g18-ba15s-alb-pentru-pozitie-tip-cireasa-kft-auto.jpg 1000 1000 935437
936666 595794 product 0 936903 M 0 set-yale-dacia-logan-2004-2009-renault-21-1987-1995-clio-1-1990-1998--expressrapid-1985-1998--2buc-yala-usa-cu-cheie-kft-auto.jpg 700 533 936903
937301 596399 product 0 937538 M 0 suport-pentru-cotiera-bestautovest-pentru-dacia-logan-1-2004--dacia-logan-2-2013-2017-si-sandero-2008-2017-kft-auto.jpg 1000 1000 937538
944768 600012 product 0 945005 M 0 carcasa-cheie-auto-cu-3-butoane-fo-113-compatibil-ford-allcars.jpg 1200 1200 945005
957817 612280 product 0 958054 M 0 piulite-jante-aluminiu-m12x125-cap-cheie-19-maniacars.jpg 235 235 958054
961866 614832 product 0 962103 M 0 prindere-podea-pentru-marfa-u-01-maniacars.jpg 800 600 962103
961870 614835 product 0 962107 M 0 folie-reflectorizanta-galbena-pretmetru-maniacars.jpg 450 600 962107
975340 621062 product 0 975577 M 0 carcasa-cheie-auto-briceag-cu-3-butoane-rotunde--buton-panica-vw-124-compatibila-volkswagen-seat-skoda-allcars.jpg 1000 1000 975577
1091851 694679 product 0 1092088 M 0 kit-cablaj-carlig-remorca-7-pini-maniacars.jpg 235 235 1092088
1092685 695183 product 0 1092922 M 0 bec-bord-12v-12w-set-10-buc-maniacars.jpg 500 500 1092922
1093905 696523 product 0 1094142 M 0 suport-telefon-magnetic-cu-ventuza-db040-maniacars.gif 260 260 1094142
1094589 696950 product 0 1094826 M 0 folie-caroserie-crom-mat-portocaliu--1-x-152cm--cod-1612b-maniacars.png 759 506 1094826
1095184 697334 product 0 1095421 M 0 set-t3-1-led-3528smd-12v-culoare-albastru-produs-lux-maniacars.jpg 240 240 1095421
1096191 697953 product 0 1096428 M 0 racleta-plastic-pentru-folie-mr-05b-maniacars.jpg 2000 2000 1096428
1215086 796373 product 0 1215323 M 0 set-capacele-ornament-prezoane-201-gratis-17-mm-culoare-negru-.jpg 1280 850 1215323
1337482 866380 product 0 1337719 M 0 adaptor-bec-led-h7-ns-10-bmw-e39-.jpg 1280 850 1337719
1337527 866417 product 0 1337764 M 0 bec-xenon-h3-6000k-12v-35-w-.jpg 1280 850 1337764
1362929 880671 product 0 1363166 M 0 priza-bricheta-auto-tripla-12v24v-cu-port-usb-.jpg 1280 850 1363166
1697846 1088508 product 0 1698084 M 0 abtibild-limita-viteza-camion-refectorizanta-mall.jpg 724 483 1698084
1770478 1120145 product 0 1770717 M 0 fir-cu-neon-pentru-lumina-ambientala-auto-lungime-1m-culoare-galben-.jpg 709 709 1770717
1994184 1232966 product 0 1994436 M 0 sticker-sports-mind---opel-maniastiker-.jpg 500 500 1994436
1994194 1232975 product 0 1994446 M 0 sticker-prag-mitsubishi-set-2-buc-maniastiker-.jpg 700 700 1994446
1994196 1232977 product 0 1994448 M 0 sticker-prag-quattro-set-2-buc-maniastiker-.jpg 700 700 1994448
1994245 1233023 product 0 1994497 M 0 sticker-auto-laterale-bmw-motorsport-set-2-buc-maniastiker-.jpg 450 450 1994497
2119854 1302601 product 0 2120106 M 0 banda-decorativa-flexibila-pentru-interior-auto-lungime-5m-culoare-albastru-.jpg 1200 1128 2120106
2581017 1434961 product 0 2581270 M 0 antena-auto-ornamentala-universala-tip-rechin-din-plastic-15x55x7cm-culoare-alb-.jpg 500 500 2581270