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 (
    480519, 596382, 697795, 1108774, 386215, 
    589116, 1732209, 590365, 589122, 611344, 
    590294, 524885, 590359, 503738, 611343, 
    1114057, 611248, 1108257, 1232917, 
    589813, 697874, 592084, 612918, 592827, 
    1232953, 589079, 697492, 1233035, 
    594419, 1108259, 696364, 588450, 697773, 
    594204, 596346, 594003
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.01061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "188.41"
    },
    "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 (480519,596382,697795,1108774,386215,589116,1732209,590365,589122,611344,590294,524885,590359,503738,611343,1114057,611248,1108257,1232917,589813,697874,592084,612918,592827,1232953,589079,697492,1233035,594419,1108259,696364,588450,697773,594204,596346,594003)))",
            "cost_info": {
              "read_cost": "72.18",
              "eval_cost": "3.60",
              "prefix_cost": "75.78",
              "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.19",
              "eval_cost": "3.60",
              "prefix_cost": "114.57",
              "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.41",
              "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
606158 386215 product 0 606395 M 0 masca-cagula-din-neopren-thermoactive-pentru-moto-sau-ski-culoare-negru-.jpg 750 750 606395
769391 480519 product 0 769628 M 0 super-windscreen-repair-kit-cars-accessories-smile-gadgets-plastic-water_606_4000x.progressive.jpg 800 800 769628
787434 503738 product 0 787671 M 0 camera-video-auto-marsarier-blow--cabluri-montaj-incluse-.jpg 800 600 787671
817200 524885 product 0 817437 M 0 priza-remorca-auto-cu-adaptor-inclus-pentru-7-sau-13-pini-.jpg 800 600 817437
929009 588450 product 0 929246 M 0 bec-auto-osram-2352mfx6-12v-2w-bx84d--bec-bord--1-buc-kft-auto.jpg 960 720 929246
929704 589079 product 0 929941 M 0 canistra-combustibil-din-metal-automax-5-litri--canistra-benzina-si-motorina-kft-auto.jpg 900 900 929941
929743 589116 product 0 929980 M 0 cap-echilibror-hayon-bolt-cu-cap-bila-m8-set-2-bucati-pentru-amortizor-kft-auto.jpg 300 232 929980
929751 589122 product 0 929988 M 0 cap-gresor-pressol-pentru-pompa-gresare-decalimetru-m10x1-1-buc-kft-auto.jpg 400 400 929988
930491 589813 product 0 930728 M 0 contact-pornire-vw-golf-3-1983-1998--golf-2-1988-1991-corrado-1988---jetta-2-1981-1991-passat-b3b4-1988-1996-polo-6n-1991-1999--vento--intrerupator-parte-electrica-kft-auto.jpg 550 504 930728
930981 590294 product 0 931218 M 0 cric-hidraulic-tip-crocodil-bestautovest-2000-kg-pe-rotile-ridicare-pana-la-325mm-2-roti-pivotante-kft-auto.jpg 427 300 931218
931047 590359 product 0 931284 M 0 cupla-aer-m4-la-m6-mufa-rapida-dreapta--reductie-plastic-kft-auto.jpg 1224 716 931284
931053 590365 product 0 931290 M 0 cupla-aer-m6xm8xm6--mufa-rapida-teu--reductie-plastic-kft-auto.jpg 855 580 931290
932858 592084 product 0 933095 M 0 semnalizare-aripa-vw-golf-4-bora-caddy-2004--lupo-passat-b5-1996-2005-t5-up-polo-6r9n-fox-amarok--ford-galaxy-seat-arosa-ibiza-leon-1m1-toledo-1m-skoda-citigo-kft-auto.jpg 709 496 933095
933624 592827 product 0 933861 M 0 mufa-bec-ceramica-pentru-soclu-h7-lungime-cablu-15cm-2-buc-kft-auto.jpg 1450 2124 933861
934848 594003 product 0 935085 M 0 rola-ghidare-curea-distributie-opel-astra-f--astra-g--combo-meriva-tigra-vectra-zafira-corsa-b--corsa-c--motorizare-14-i-16v--16-i-16v--18--18-18v--16-cng-kft-auto.jpg 750 639 935085
935055 594204 product 0 935292 M 0 sensor-pozitie-clapeta-acceleratie-dacia-logan-2004-2009-duster-2010--motor-16-16v-si-renault-clio-2-espace-3-laguna-1-megane-1-scenic-1-thalia-1-pt-14-16v-106-16v-18-16v-20-16v-kft-auto.jpg 349 280 935292
935276 594419 product 0 935513 M 0 set-6-sigurante-auto-carpoint-de-sticla-2a--lungime-20-mm--pentru-radio-kft-auto.jpg 1000 1000 935513
937242 596346 product 0 937479 M 0 suport-becuri-stop-spate-lampa-dacia-logan-berlina-2004-2009-dreapta-kft-auto.jpg 700 535 937479
937284 596382 product 0 937521 M 0 suport-numar-inmatriculare-auto-carbon-kft-auto.jpg 900 500 937521
955925 611248 product 0 956162 M 0 proiector-led-ch059-6d-20w-1224v-spot-beam-30-geam-transparent-maniacars.jpg 466 466 956162
956083 611343 product 0 956320 M 0 butuc-roata-remorca-4100-cu-ax--cw-0203-maniacars.jpg 406 273 956320
956084 611344 product 0 956321 M 0 butuc-roata-remorca-4100--hc-0203-maniacars.jpg 346 260 956321
958823 612918 product 0 959060 M 0 huse-auto-compatibile-logan-i-nefractionat-material-romb-maniacars.jpg 1600 1200 959060
1093703 696364 product 0 1093940 M 0 piulite-jante-aluminiu-m12x15-cap-cheie-19-maniacars.jpg 235 235 1093940
1095428 697492 product 0 1095665 M 0 adaptor-mufa-radio-blaupunkt-maniacars.jpg 1000 1000 1095665
1095918 697795 product 0 1096155 M 0 abtibild-cromat-litere--cifre--semne-3d-maniacars.jpg 800 600 1096155
1096055 697874 product 0 1096292 M 0 antena-ornament-rechin-neagra-maniacars.jpg 600 450 1096292
1741451 1108257 product 0 1741690 M 0 folie-protectie-faruristopuri-light-black-60x60cm-maniacars-.jpg 800 800 1741690
1741454 1108259 product 0 1741693 M 0 folie-protectie-faruristopuri-rosie-60x60cm-maniacars-.jpg 700 700 1741693
1742285 1108774 product 0 1742524 M 0 folie-carbon-3d-negru-1x127m-.jpg 1053 1053 1742524
1753520 1114057 product 0 1753759 M 0 purificator-aer-auto-carruzzo-cu-functie-de-ionizare-filtru-de-carbon-eficienta-36mp-.jpg 750 750 1753759
1994126 1232917 product 0 1994378 M 0 set-protectie-praguri-vw-golf-v1-maniastiker-.jpg 500 500 1994378
1994167 1232953 product 0 1994419 M 0 sticker-sports-mind---amg-maniastiker-.jpg 500 498 1994419
1994258 1233035 product 0 1994510 M 0 set-protectii-praguri-crom---skoda-octavia-maniastiker-.png 988 645 1994510
3373481 697773 product 0 3373734 M 0 bk14300.png 800 800 3373734
3947439 1732209 product 0 3947692 M 0 Monitor-tetiera-cu-touch-screen-10-1-inch-si-telecomand-SPT1025-MRA36-160221-4.jpg Monitor tetiera cu touch screen 10.1 inch si telecomand SPT1025 MRA36-160221-4 1192 1192 3947692