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 = 'A' 
  AND cscart_images_links.object_id IN (
    480519, 524885, 697773, 866373, 1118377, 
    697683, 612103, 880671, 1434961, 694679, 
    822677, 614913, 301401, 822659, 613219, 
    613221, 1025388, 822679, 1025367, 
    1025365, 1230911, 1338749, 1731846, 
    1732251, 359020, 1153153, 1153155, 
    1338924, 1231165, 1731742, 1732158, 
    1231166, 1732357, 1153734, 1732013, 
    1663556
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00996

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "302.92"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "62.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": 62,
            "rows_produced_per_join": 62,
            "filtered": "100.00",
            "index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'A') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (480519,524885,697773,866373,1118377,697683,612103,880671,1434961,694679,822677,614913,301401,822659,613219,613221,1025388,822679,1025367,1025365,1230911,1338749,1731846,1732251,359020,1153153,1153155,1338924,1231165,1731742,1732158,1231166,1732357,1153734,1732013,1663556)))",
            "cost_info": {
              "read_cost": "101.10",
              "eval_cost": "6.20",
              "prefix_cost": "107.30",
              "data_read_per_join": "5K"
            },
            "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": 62,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "61.18",
              "eval_cost": "6.20",
              "prefix_cost": "174.68",
              "data_read_per_join": "47K"
            },
            "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": 62,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "60.04",
              "eval_cost": "6.20",
              "prefix_cost": "240.92",
              "data_read_per_join": "36K"
            },
            "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
460271 301401 product 0 460508 A 0 plasa-de-depozitare-durabila-cu-crlige-60-x-60-cm-lungime-ntinsa-_g8hk-7q.jpg 800 533 460508
460272 301401 product 0 460509 A 0 plasa-de-depozitare-durabila-cu-crlige-60-x-60-cm-lungime-ntinsa-_rvdx-4q.jpg 800 533 460509
460273 301401 product 0 460510 A 0 plasa-de-depozitare-durabila-cu-crlige-60-x-60-cm-lungime-ntinsa-_8c3s-x4.jpg 800 533 460510
559118 359020 product 0 559355 A 0 organizator-auto-pentru-spatarul-scaunului-din-fata-al-masinii-_ol03-wg.jpg 700 524 559355
769392 480519 product 0 769629 A 0 super-windscreen-repair-kit-cars-accessories-smile-gadgets-yellow-plastic-technology-wing_582_4000x.progressive.jpg 800 800 769629
769393 480519 product 0 769630 A 0 super-windscreen-repair-kit-white-cars-accessories-smile-gadgets_399_4000x.progressive.jpg 640 640 769630
769394 480519 product 0 769631 A 0 super-windscreen-repair-kit-cars-accessories-smile-gadgets-motor-vehicle-car-windshield-glass-door-ecosystem-mode_976_4000x.progressive.jpg 800 800 769631
769395 480519 product 0 769632 A 0 kit-pentru-reparatie-parbriz-sau-geam-auto-_hidm-kz.jpg 800 675 769632
769396 480519 product 0 769633 A 0 diy-winscreen-chip-repair-kit-1000x1000.jpg 1000 1000 769633
769397 480519 product 0 769634 A 0 chip_and_crack_repair_kit-1000x1000.jpg 876 876 769634
769398 480519 product 0 769635 A 0 4-foots-Professional-DIY-Car-Windshield-Chip-Repair-Kit-tools-Auto-Glass-Windscreen-repair-set-Car_9d6fad2c-6734-489b-841d-b1b8b497fbb1__19148.1516046932.jpg 700 686 769635
957537 612103 product 0 957774 A 0 filtru-aer-tuning-cu-carcasa-rosie-maniacars_4055-lg.jpg 600 600 957774
959301 613219 product 0 959538 A 0 invertor-220v-12v-20a-240w-cu-ventilator-maniacars_qau5-c6.jpg 800 533 959538
959305 613221 product 0 959542 A 0 invertor-220v-12v-30a-360w-cu-ventilator-maniacars_8vbk-tg.jpg 800 533 959542
1095761 697683 product 0 1095998 A 0 releu-4-pini-40a-12v-maniacars_l00p-r0.jpg 1208 1732 1095998
1095886 697773 product 0 1096123 A 0 pompa-amorsare-auto-cu-cot-maniacars_sqni-mm.jpg 800 600 1096123
1262218 822677 product 0 1262455 A 0 adaptor-priza-bricheta-blow-3xusb-52a-protectie-la-supratensiune-_80g6-vf.jpg 800 600 1262455
1337474 866373 product 0 1337711 A 0 incarcator-auto-wireless-cu-suport-inchideredeschidere-automata-incarcare-prin-inductie-electromagnetica-brat-reglabil-negru-_s2h3-s7.jpg 1280 850 1337711
1337475 866373 product 0 1337712 A 0 incarcator-auto-wireless-cu-suport-inchideredeschidere-automata-incarcare-prin-inductie-electromagnetica-brat-reglabil-negru-_5kl2-rr.jpg 1280 850 1337712
1764723 1118377 product 0 1764962 A 0 covoras-husa-auto-de-protectie-bancheta-sau-portbagaj-pentru-transport-animale-144x144-cm-_9l8e-mq.jpg 666 500 1764962
1764724 1118377 product 0 1764963 A 0 covoras-husa-auto-de-protectie-bancheta-sau-portbagaj-pentru-transport-animale-144x144-cm-_tcgr-ox.jpg 623 500 1764963
1764725 1118377 product 0 1764964 A 0 covoras-husa-auto-de-protectie-bancheta-sau-portbagaj-pentru-transport-animale-144x144-cm-_3ym8-gz.jpg 750 369 1764964
1764726 1118377 product 0 1764965 A 0 covoras-husa-auto-de-protectie-bancheta-sau-portbagaj-pentru-transport-animale-144x144-cm-_hisf-3j.jpg 747 499 1764965
1764727 1118377 product 0 1764966 A 0 covoras-husa-auto-de-protectie-bancheta-sau-portbagaj-pentru-transport-animale-144x144-cm-_ujj0-90.jpg 564 500 1764966
1764728 1118377 product 0 1764967 A 0 covoras-husa-auto-de-protectie-bancheta-sau-portbagaj-pentru-transport-animale-144x144-cm-_hzls-a9.jpg 747 499 1764967
1859516 1153734 product 0 1859768 A 0 tester-de-presiune-analogic-pt-pneuri---gbz-55779-brico-decohome_1i92-zi.jpg 1600 1600 1859768
1859517 1153734 product 0 1859769 A 0 tester-de-presiune-analogic-pt-pneuri---gbz-55779-brico-decohome_w8bb-g5.jpg 1600 1600 1859769
1859518 1153734 product 0 1859770 A 0 tester-de-presiune-analogic-pt-pneuri---gbz-55779-brico-decohome_hsfq-71.jpg 1600 1600 1859770
1859519 1153734 product 0 1859771 A 0 tester-de-presiune-analogic-pt-pneuri---gbz-55779-brico-decohome_msnr-cc.jpg 1600 1600 1859771
1859520 1153734 product 0 1859772 A 0 tester-de-presiune-analogic-pt-pneuri---gbz-55779-brico-decohome_nu2i-4y.jpg 1600 1600 1859772
1859521 1153734 product 0 1859773 A 0 tester-de-presiune-analogic-pt-pneuri---gbz-55779-brico-decohome_sgeo-vu.jpg 1600 1600 1859773
1990242 1230911 product 0 1990494 A 0 parasolar-auto-universal-retractabil-pentru-parbriz-sau-luneta-protectie-uv-150x65-cm-gri-_4s61-jd.jpg 620 500 1990494
1990243 1230911 product 0 1990495 A 0 parasolar-auto-universal-retractabil-pentru-parbriz-sau-luneta-protectie-uv-150x65-cm-gri-_8xv6-g2.jpg 590 500 1990495
1990244 1230911 product 0 1990496 A 0 parasolar-auto-universal-retractabil-pentru-parbriz-sau-luneta-protectie-uv-150x65-cm-gri-_gqrb-qm.jpg 739 500 1990496
1990245 1230911 product 0 1990497 A 0 parasolar-auto-universal-retractabil-pentru-parbriz-sau-luneta-protectie-uv-150x65-cm-gri-_l96p-3s.jpg 750 498 1990497
1990246 1230911 product 0 1990498 A 0 parasolar-auto-universal-retractabil-pentru-parbriz-sau-luneta-protectie-uv-150x65-cm-gri-_so5s-9o.jpg 747 500 1990498
2251913 1338749 product 0 2252165 A 0 set-huse-scaune-fataspate-art210fs-super-soft---diverse-culori-_755o-6f.jpg 600 600 2252165
2252185 1338924 product 0 2252437 A 0 suport-telefon-cu-incarcator-wireless-s5-2in1-_50f9-k4.jpg 800 800 2252437
2581018 1434961 product 0 2581271 A 0 antena-auto-ornamentala-universala-tip-rechin-din-plastic-15x55x7cm-culoare-alb-_bvl5-d0.jpg 652 500 2581271
2581019 1434961 product 0 2581272 A 0 antena-auto-ornamentala-universala-tip-rechin-din-plastic-15x55x7cm-culoare-alb-_vxm1-qk.jpg 652 500 2581272
2581020 1434961 product 0 2581273 A 0 antena-auto-ornamentala-universala-tip-rechin-din-plastic-15x55x7cm-culoare-alb-_k6h0-aq.jpg 652 500 2581273
2581021 1434961 product 0 2581274 A 0 antena-auto-ornamentala-universala-tip-rechin-din-plastic-15x55x7cm-culoare-alb-_9p6d-pr.jpg 652 500 2581274
3946879 1731846 product 0 3947132 A 0 Eleron-portbagaj---haion-universal-negru-lucios-COD--UNIV-091-MRA36-040621-19_p7je-vd.jpg Eleron portbagaj / haion universal negru lucios COD: UNIV-091 MRA36-040621-19 800 800 3947132
3947350 1732158 product 0 3947603 A 0 Lada-frigorifica-termoelectrica-capacitate-21L-tensiune-alimentare-12V-putere-48W-cu-adaptor-220V-Breckner-Germany-BK87829-MRA36-220221-10_besr-ob.png Lada frigorifica termoelectrica capacitate 21L tensiune alimentare 12V putere 48W cu adaptor 220V Breckner Germany BK87829 MRA36-220221-10 1200 1200 3947603