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 (
    594419, 592887, 696613, 594006, 594343, 
    589592, 1070099, 589227, 588819, 588451, 
    1083832, 593444, 588949, 1069305, 
    588427, 594233, 1070735, 1070836, 
    595739, 593291, 590619, 1117834, 1068348, 
    1067093, 1070861, 1071424, 594354, 
    1070693, 588463, 588464, 596931, 1283289
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.01014

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "168.27"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "32.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": 32,
            "rows_produced_per_join": 32,
            "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 (594419,592887,696613,594006,594343,589592,1070099,589227,588819,588451,1083832,593444,588949,1069305,588427,594233,1070735,1070836,595739,593291,590619,1117834,1068348,1067093,1070861,1071424,594354,1070693,588463,588464,596931,1283289)))",
            "cost_info": {
              "read_cost": "64.57",
              "eval_cost": "3.20",
              "prefix_cost": "67.77",
              "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "31.37",
              "eval_cost": "3.20",
              "prefix_cost": "102.33",
              "data_read_per_join": "24K"
            },
            "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "30.74",
              "eval_cost": "3.20",
              "prefix_cost": "136.27",
              "data_read_per_join": "19K"
            },
            "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
928986 588427 product 0 929223 M 0 bec-auto-cu-halogen-pentru-far-vecta-h7-12v-55w-px26d--1-buc-kft-auto.jpg 300 450 929223
929010 588451 product 0 929247 M 0 bec-auto-osram-2452mfx6-12v-150-w-bx84d-bec-bord-cu-fasung-bej-1-buc-kft-auto.jpg 1037 1260 929247
929022 588463 product 0 929259 M 0 bec-auto-osram-64150-12v-100w-p145s-h1--bec-far--1-buc-kft-auto.jpg 1000 1000 929259
929023 588464 product 0 929260 M 0 bec-auto-osram-64151-12v-55w-pk22s-h3--bec-far-1-buc-kft-auto.jpg 1037 1260 929260
929402 588819 product 0 929639 M 0 bucsa-bara-stabilizatoare-dacia-logan--2004-2012-logan-ii-2012--logan-mcv-express-pickup-sandero-2008-2012-sandero-ii-2012--lodgy--dokker---originala-renault-stangadreapta-1-bucata-kft-auto.jpg 265 265 929639
929551 588949 product 0 929788 M 0 buton-reglaj-oglinzi-audi-a3-8p-a6-4f-a8-4e-audi-q7-4l-comutator-4f0959565a-kft-auto.jpg 600 600 929788
929866 589227 product 0 930103 M 0 carcasa-filtru-aer-skoda-octavia-vw-golf-5-passat-b6-seat-altea-5p-20-fsisdi-1f0129607-kft-auto.jpg 800 751 930103
930261 589592 product 0 930498 M 0 clema-mecanism-ridicare-geam-peugeot-206-renault-megane-2-reparatie-macara-fata--stanga-dreapta--pentru-sina-stanga-kft-auto.jpg 250 250 930498
931340 590619 product 0 931577 M 0 filtru-benzina-mann-wk6002-dacia-logan-sandero-solenza--supernova-12-16v-14--16--renault-clio-kangoo-laguna-megane-scenic--espace-fluence-peugeot-106-206-2007-306-307-308-406-407-408-807-kft-auto.jpg 800 600 931577
933685 592887 product 0 933922 M 0 obturator-praf-balama-usa-dacia-logan-sandero-si-duster-kft-auto.jpg 800 688 933922
934096 593291 product 0 934333 M 0 panza-antiderapanta-bord-automax-19-x-22-cm-1-buc-kft-auto.jpg 566 300 934333
934264 593444 product 0 934501 M 0 petice-universal-ats-ur-45-40mm--vulcanizare-anvelope-1-bucata-kft-auto.jpg 1100 1008 934501
934851 594006 product 0 935088 M 0 rola-ghidare-curea-distributie-opel-astra-g--astra-h--vectra-c--zafira-ab--corsa-c--meriva--signum-motorizari-18--18-16v--16-16v--16-cng--18-i-diametru-ext-5250mm--latime-25-mm-kft-auto.jpg 740 668 935088
935086 594233 product 0 935323 M 0 senzor-parcare-seat-altea-5p-leon-1p-vw-caddy-3-2004--scirocco-touran-1t-aftermarket-7l5919275b-kft-auto.jpg 500 500 935323
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
935211 594354 product 0 935448 M 0 becuri-auto-vecta-12v-t10-w21x95d-5w-cu-4-leduri-smd-3528smd-canbus--fara-eroare-in-bord--alb-kft-auto.jpg 365 319 935448
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
936610 595739 product 0 936847 M 0 set-pana-80-bucati---diferite-marimi-kft-auto.jpg 650 541 936847
937867 596931 product 0 938104 M 0 protectie-portbagaj--volkswagen-vw-touran-1-1t1t2-gp-cu-5-locuri-2003-2010-kft-auto.jpg 800 682 938104
1094059 696613 product 0 1094296 M 0 cotiera-dedicata-dacia-duster-2009--prezent-cod-brndt1020-n-cot12-maniacars.jpg 400 400 1094296
1650079 1067093 product 0 1650317 M 0 cupla-aer-m10--mufa-rapida-dreapta--plastic-kft-auto.jpg 1218 680 1650317
1652226 1068348 product 0 1652464 M 0 amortizor-haion-spate-mitsubishi-carisma-da0-071995-122004-hatchback-lungimefortacursa-piston-570520245-hayon-cu-spoiler-mr101555-stanga--dreapta-kft-auto.jpg 265 190 1652464
1653747 1069305 product 0 1653985 M 0 chinga-remorcare-automax-sufa-de-metal-2-tone-4-metri-kft-auto.jpg 345 300 1653985
1654660 1070099 product 0 1654898 M 0 radio-mp3-player-kenwood-kdc-351rn-4-x-50w-mp3wma-cu-fata-detasabila-cod-renault-7711430384-kft-auto.jpg 800 533 1654898
1655318 1070693 product 0 1655556 M 0 bec-auto-xenon-hid-pentru-far-h7-4300k-bestautovest-1-buc-kft-auto.png 1000 1000 1655556
1655360 1070735 product 0 1655598 M 0 set-piulite-auto-antifurt-carpoint-tip-f--m12-x-15--daewoo-ford-honda-mazda-mitsubishi-volvo-isuzu-chrysler-kft-auto.jpg 401 400 1655598
1655475 1070836 product 0 1655713 M 0 papuci-electrici-izolati-mama-rosu-rotund-40-mm-lungime-2270-mm-crimpat-545-10-terminale-la-blister-carpoint-kft-auto.jpg 611 434 1655713
1655500 1070861 product 0 1655738 M 0 papuci-electrici-izolati-mama-galben-rotund-68-mm-lungime-267-mm-crimpat-551-10-buc-la-blister-carpoint-kft-auto.jpg 710 512 1655738
1656213 1071424 product 0 1656451 M 0 conector-electric-tubular-mufa-pentru-inadire-diam-025mm---15mm-rosu-kft-auto.jpg 700 700 1656451
1690425 1083832 product 0 1690663 M 0 set-2-becuri-auto-12v-4w-ba9s-t85--albastru-bord-si-pozitie-.jpg 430 373 1690663
2085995 1283289 product 0 2086247 M 0 e32cdb2818b8dcee584cdf73b3913dd0-86952-700_700.jpg 700 700 2086247
2626804 1117834 product 0 2627057 M 0 fir-cu-neon-pentru-lumina-ambientala-auto-lungime-1m-culoare-verde-.jpg 800 800 2627057