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

Query time 0.00692

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "228.87"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "46.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": 46,
            "rows_produced_per_join": 46,
            "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,596382,697795,1108774,386215,589116,1732209,590365,589122,611344,524885,590294,590359,503738,611343,1114057,611248,1108257,1232917,589813,697874,592084,612918,1232953,592827,589079,596346,697492,1233035,594419,1108259,696364,697773,588450,1108367,594204)))",
            "cost_info": {
              "read_cost": "81.27",
              "eval_cost": "4.60",
              "prefix_cost": "85.87",
              "data_read_per_join": "4K"
            },
            "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": 46,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "44.64",
              "eval_cost": "4.60",
              "prefix_cost": "135.10",
              "data_read_per_join": "35K"
            },
            "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": 46,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "43.17",
              "eval_cost": "4.60",
              "prefix_cost": "182.87",
              "data_read_per_join": "27K"
            },
            "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
606159 386215 product 0 606396 A 0 masca-cagula-din-neopren-thermoactive-pentru-moto-sau-ski-culoare-negru-_537c-q4.jpg 750 750 606396
606160 386215 product 0 606397 A 0 masca-cagula-din-neopren-thermoactive-pentru-moto-sau-ski-culoare-negru-_r602-iz.jpg 750 750 606397
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
787435 503738 product 0 787672 A 0 camera-video-auto-marsarier-blow--cabluri-montaj-incluse-_gd3g-9b.jpg 800 600 787672
787436 503738 product 0 787673 A 0 camera-video-auto-marsarier-blow--cabluri-montaj-incluse-_sde6-g6.jpg 800 600 787673
787437 503738 product 0 787674 A 0 camera-video-auto-marsarier-blow--cabluri-montaj-incluse-_90yc-o3.jpg 800 600 787674
955926 611248 product 0 956163 A 0 proiector-led-ch059-6d-20w-1224v-spot-beam-30-geam-transparent-maniacars_xpyg-gz.jpg 800 800 956163
956085 611344 product 0 956322 A 0 butuc-roata-remorca-4100--hc-0203-maniacars_rimm-n9.jpg 545 525 956322
958824 612918 product 0 959061 A 0 huse-auto-compatibile-logan-i-nefractionat-material-romb-maniacars_hm32-tg.jpg 800 533 959061
1095886 697773 product 0 1096123 A 0 pompa-amorsare-auto-cu-cot-maniacars_sqni-mm.jpg 800 600 1096123
1095919 697795 product 0 1096156 A 0 abtibild-cromat-litere--cifre--semne-3d-maniacars_yy2k-t1.jpg 800 600 1096156
1096056 697874 product 0 1096293 A 0 antena-ornament-rechin-neagra-maniacars_snx7-3k.jpg 800 600 1096293
1741452 1108257 product 0 1741691 A 0 folie-protectie-faruristopuri-light-black-60x60cm-maniacars-_erc5-5h.jpg 800 800 1741691
1742286 1108774 product 0 1742525 A 0 folie-carbon-3d-negru-1x127m-_vcm9-qr.jpg 800 800 1742525
1753521 1114057 product 0 1753760 A 0 purificator-aer-auto-carruzzo-cu-functie-de-ionizare-filtru-de-carbon-eficienta-36mp-_b2tw-ty.jpg 750 750 1753760
1753522 1114057 product 0 1753761 A 0 purificator-aer-auto-carruzzo-cu-functie-de-ionizare-filtru-de-carbon-eficienta-36mp-_euah-op.jpg 750 750 1753761
3947440 1732209 product 0 3947693 A 0 Monitor-tetiera-cu-touch-screen-10-1-inch-si-telecomand-SPT1025-MRA36-160221-4_dbqh-zy.jpg Monitor tetiera cu touch screen 10.1 inch si telecomand SPT1025 MRA36-160221-4 900 900 3947693