SELECT 
  cscart_images.*, 
  cscart_images_links.*, 
  cscart_common_descriptions.description AS alt, 
  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 = 'de' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    1831, 1839, 1830, 1838, 1833, 1837, 1846, 
    1217, 951, 471, 469, 483, 473, 474, 481, 
    479, 1190, 1193, 943, 1156, 944, 803, 
    1904, 1165
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00160

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "177.61"
    },
    "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": "((`eshopuga_upgr_4122`.`cscart_images_links`.`object_type` = 'product') and (`eshopuga_upgr_4122`.`cscart_images_links`.`type` = 'M') and (`eshopuga_upgr_4122`.`cscart_images_links`.`object_id` in (1831,1839,1830,1838,1833,1837,1846,1217,951,471,469,483,473,474,481,479,1190,1193,943,1156,944,803,1904,1165)))",
            "cost_info": {
              "read_cost": "62.41",
              "eval_cost": "6.40",
              "prefix_cost": "68.81",
              "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": "4",
            "ref": [
              "eshopuga_upgr_4122.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "107.21",
              "data_read_per_join": "24K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_images), (`eshopuga_upgr_4122`.`cscart_images_links`.`detailed_id` = `eshopuga_upgr_4122`.`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": [
              "eshopuga_upgr_4122.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "145.61",
              "data_read_per_join": "19K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`eshopuga_upgr_4122`.`cscart_common_descriptions`.`object_id` = `eshopuga_upgr_4122`.`cscart_images`.`image_id`), true)"
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res pair_id object_id object_type detailed_id type position alt images_image_id
0 ABSOLUT_VODKA.jpg 432 381 N 1790 469 product 1908 M 0 1908
0 Absolut_Raspberri_75cl.jpg 600 600 N 1792 471 product 1910 M 0 1910
0 ABSOLUT_VODKA_Kurant.png 1100 1100 N 1794 473 product 1912 M 0 1912
0 ABSOLUT_VODKA_Mango.jpg 500 500 N 1795 474 product 1913 M 0 1913
0 ABSOLUT_VODKA_Vanilla.jpg 605 1000 N 1800 479 product 1918 M 0 1918
0 ABSOLUT_VODKA_Ruby_Red.jpg 900 900 N 1802 481 product 1920 M 0 1920
0 ABSOLUT_VODKA_Citron.jpg 700 900 N 1804 483 product 1922 M 0 1922
0 BAILEYS_IRISH_CREAM_75CL.jpg 350 350 N 2134 803 product 2252 M 0 2252
0 Amarula_cream_375_ml_.jpg 500 500 N 2284 943 product 2402 M 0 Amarula cream (375 ml) 2402
0 BAILEYS_IRISH_CREAM_1LTR.jpg 540 720 N 2292 944 product 2410 M 0 Baileys The Original Irish Cream 1 Litre 2410
0 1_Litre_Hennessy_V_S_Cognac.jpg 1600 1600 N 2297 951 product 2415 M 0 2415
0 Bacardi_Superior_Premium_Rum.jpg 850 850 N 2509 1156 product 2627 M 0 Bacardi Superior Premium Rum 2627
0 Bisquit_Cognac_Brandy.jpg 1100 1100 N 2518 1165 product 2636 M 0 Bisquit Cognac Brandy 2636
0 AC_Black_Whisky_375ml.jpg 680 850 N 2543 1190 product 2661 M 0 AC Black Whisky - 375ml 2661
0 AC_Black_Whisky_750ml.jpg 680 850 N 2546 1193 product 2664 M 0 AC Black Whisky- 750ml 2664
0 1_Litre_Bushmills_Original_Irish_Whiskey.jpg 850 850 N 2570 1217 product 2688 M 0 1 Litre Bushmills Original Irish Whiskey 2688
0 _750ml_x_12_bottles_Captain_Morgan_spiced_gold_Rum_carton.jpg 750 2000 N 3243 1830 product 3361 M 0 ​(750ml x 12 bottles) Captain Morgan spiced gold Rum carton 3361
0 _200ml_x_48_bottles_Gilbey_s_Gin_carton.jpg 366 480 N 3244 1831 product 3362 M 0 (200ml x 48 bottles) Gilbey’s Gin carton 3362
0 _750ml_x_12_bottles_Gilbey_s_Gin_carton.jpeg 366 480 N 3246 1833 product 3364 M 0 (750ml x 12 bottles) Gilbey’s Gin carton 3364
0 _750ml_x_12_bottles_J_B_Rare_scotch_whiskey_carton.png 330 1332 N 3250 1837 product 3368 M 0 (750ml x 12 bottles) J&B Rare scotch whiskey carton 3368
0 _750ml_x_12_bottles_Johnnie_walker_red_label_carton.jpg 2480 3898 N 3251 1838 product 3369 M 0 (750ml x 12 bottles) Johnnie walker red label carton 3369
0 _375ml_x_24_bottles_Johnnie_walker_red_label_carton.jpg 750 2000 N 3252 1839 product 3370 M 0 (375ml x 24 bottles) Johnnie walker red label carton 3370
0 _750ml_x_12_bottles_VAT_69_Scotch_whiskey.jpg 510 720 N 3259 1846 product 3377 M 0 (750ml x 12 bottles) VAT 69 Scotch whiskey 3377
0 Ballantines_Finest_Blended_Scotch_Whisky_750ml.jpg 500 500 N 3316 1904 product 3434 M 0 Ballantines Finest Blended Scotch Whisky 750ml 3434