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 = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    282971, 282972, 282973, 282974, 282975, 
    282976, 286602, 286603, 286604, 286605, 
    286607, 283081, 283083, 283084, 283085, 
    283086, 283087, 283125, 283126, 283127, 
    283128, 283129, 283130, 286561, 286562, 
    286563, 286564, 286565, 286569, 282507, 
    282508, 282509, 282510, 282511, 283098, 
    283099, 283100, 283101, 283102, 283103, 
    279396, 279397, 279398, 279399, 279400, 
    279401, 279402, 286611, 286612, 286613, 
    286614, 286616, 282889, 282898, 282899, 
    282900, 282901, 282902, 282939, 282944, 
    282945, 282946, 282947, 286620, 286621, 
    286622, 286625, 277944, 277945, 277946, 
    277947, 277948, 277954, 286500, 286501, 
    286502, 286503, 286504, 286505, 286533, 
    286536, 286537, 286538, 284472, 284473, 
    284474, 284475, 286574, 286575, 286577, 
    279355, 279356, 279359, 279360, 278025, 
    278026, 278027, 278028, 278029, 278209, 
    278210, 285797, 425349, 425350, 279438, 
    279439, 279440, 277872, 286557, 278250, 
    278190
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00725

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "643.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "111.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": 111,
            "rows_produced_per_join": 111,
            "filtered": "100.00",
            "index_condition": "((`webmarco`.`cscart_images_links`.`object_type` = 'product') and (`webmarco`.`cscart_images_links`.`type` = 'M') and (`webmarco`.`cscart_images_links`.`object_id` in (282971,282972,282973,282974,282975,282976,286602,286603,286604,286605,286607,283081,283083,283084,283085,283086,283087,283125,283126,283127,283128,283129,283130,286561,286562,286563,286564,286565,286569,282507,282508,282509,282510,282511,283098,283099,283100,283101,283102,283103,279396,279397,279398,279399,279400,279401,279402,286611,286612,286613,286614,286616,282889,282898,282899,282900,282901,282902,282939,282944,282945,282946,282947,286620,286621,286622,286625,277944,277945,277946,277947,277948,277954,286500,286501,286502,286503,286504,286505,286533,286536,286537,286538,284472,284473,284474,284475,286574,286575,286577,279355,279356,279359,279360,278025,278026,278027,278028,278029,278209,278210,285797,425349,425350,279438,279439,279440,277872,286557,278250,278190)))",
            "cost_info": {
              "read_cost": "244.21",
              "eval_cost": "22.20",
              "prefix_cost": "266.41",
              "data_read_per_join": "10K"
            },
            "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": [
              "webmarco.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 111,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "111.00",
              "eval_cost": "22.20",
              "prefix_cost": "399.61",
              "data_read_per_join": "84K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ]
          }
        },
        {
          "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": "108",
            "ref": [
              "webmarco.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 111,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "111.00",
              "eval_cost": "22.20",
              "prefix_cost": "532.81",
              "data_read_per_join": "65K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

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 Paloma_Foresta_BALCONY_VIEW.jpg 1200 900 N 2246661 277872 product 575681 M 0 575681
0 62828376.jpg 1200 900 N 2252403 277944 product 575759 M 0 575759
0 62828376.jpg 1200 900 N 2252404 277945 product 575759 M 0 575759
0 62828376.jpg 1200 900 N 2252405 277946 product 575759 M 0 575759
0 62828376.jpg 1200 900 N 2252406 277947 product 575759 M 0 575759
0 62828376.jpg 1200 900 N 2252407 277948 product 575759 M 0 575759
0 62828376.jpg 1200 900 N 2252413 277954 product 575759 M 0 575759
0 Baia_Kemer_Club_POOLS.jpg 1280 775 N 2254513 278025 product 575812 M 0 575812
0 Baia_Kemer_Club_POOLS.jpg 1280 775 N 2254514 278026 product 575812 M 0 575812
0 Baia_Kemer_Club_POOLS.jpg 1280 775 N 2254515 278027 product 575812 M 0 575812
0 Baia_Kemer_Club_POOLS.jpg 1280 775 N 2254516 278028 product 575812 M 0 575812
0 Baia_Kemer_Club_POOLS.jpg 1280 775 N 2254517 278029 product 575812 M 0 575812
0 Amara_Premier_Palace1.jpg 1201 900 N 2256572 278190 product 575943 M 0 575943
0 royal_alhambra1.jpg 1201 900 N 2256811 278209 product 575951 M 0 575951
0 royal_alhambra1.jpg 1201 900 N 2256812 278210 product 575951 M 0 575951
0 lyra.jpg 1280 734 N 2257108 278250 product 575970 M 0 575970
0 71929875.jpg 1280 853 N 2257994 279355 product 576059 M 0 576059
0 71929875.jpg 1280 853 N 2257995 279356 product 576059 M 0 576059
0 71929875.jpg 1280 853 N 2257998 279359 product 576059 M 0 576059
0 71929875.jpg 1280 853 N 2257999 279360 product 576059 M 0 576059
0 Untitled_design__2__5o9g-6a.png 600 600 N 2259503 279438 product 577194 M 0 577194
0 Untitled_design__2__5o9g-6a.png 600 600 N 2259504 279439 product 577194 M 0 577194
0 Untitled_design__2__5o9g-6a.png 600 600 N 2259505 279440 product 577194 M 0 577194
0 Adsız_tasarım__1__8nzx-6r.png 250 250 N 2265730 279396 product 578540 M 0 578540
0 Adsız_tasarım__1__f68l-pa.png 250 250 N 2265731 279397 product 578541 M 0 578541
0 Adsız_tasarım__1__71ce-2t.png 250 250 N 2265732 279398 product 578542 M 0 578542
0 Adsız_tasarım__1__gz5g-28.png 250 250 N 2265733 279399 product 578543 M 0 578543
0 Adsız_tasarım__1__ljlx-ji.png 250 250 N 2265734 279400 product 578544 M 0 578544
0 Adsız_tasarım__1__wbdk-bd.png 250 250 N 2265735 279401 product 578545 M 0 578545
0 Adsız_tasarım__1__uu2k-7x.png 250 250 N 2265736 279402 product 578546 M 0 578546
0 Untitled_design__25__aspq-54.png 600 600 N 2283839 282507 product 585555 M 0 585555
0 Untitled_design__25__aspq-54.png 600 600 N 2283840 282508 product 585555 M 0 585555
0 Untitled_design__25__aspq-54.png 600 600 N 2283841 282509 product 585555 M 0 585555
0 Untitled_design__25__aspq-54.png 600 600 N 2283842 282510 product 585555 M 0 585555
0 Untitled_design__25__aspq-54.png 600 600 N 2283843 282511 product 585555 M 0 585555
0 6_7xp6-4m.png 600 600 N 2293460 282889 product 588281 M 0 588281
0 6_7xp6-4m.png 600 600 N 2293490 282898 product 588281 M 0 588281
0 6_7xp6-4m.png 600 600 N 2293491 282899 product 588281 M 0 588281
0 6_7xp6-4m.png 600 600 N 2293492 282900 product 588281 M 0 588281
0 6_7xp6-4m.png 600 600 N 2293493 282901 product 588281 M 0 588281
0 6_7xp6-4m.png 600 600 N 2293494 282902 product 588281 M 0 588281
0 6_3s0w-5m.png 600 600 N 2293601 282939 product 588289 M 0 588289
0 6_3s0w-5m.png 600 600 N 2293624 282944 product 588289 M 0 588289
0 6_3s0w-5m.png 600 600 N 2293625 282945 product 588289 M 0 588289
0 6_3s0w-5m.png 600 600 N 2293626 282946 product 588289 M 0 588289
0 6_3s0w-5m.png 600 600 N 2293627 282947 product 588289 M 0 588289
0 2_znlk-ns.png 600 600 N 2293686 282971 product 588293 M 0 588293
0 2_znlk-ns.png 600 600 N 2293705 282972 product 588293 M 0 588293
0 2_znlk-ns.png 600 600 N 2293706 282973 product 588293 M 0 588293
0 2_znlk-ns.png 600 600 N 2293707 282974 product 588293 M 0 588293
0 2_znlk-ns.png 600 600 N 2293708 282975 product 588293 M 0 588293
0 2_znlk-ns.png 600 600 N 2293709 282976 product 588293 M 0 588293
0 2_x2zj-pj.png 600 600 N 2298392 283081 product 589005 M 0 589005
0 2_x2zj-pj.png 600 600 N 2298421 283083 product 589005 M 0 589005
0 2_x2zj-pj.png 600 600 N 2298422 283084 product 589005 M 0 589005
0 2_x2zj-pj.png 600 600 N 2298423 283085 product 589005 M 0 589005
0 2_x2zj-pj.png 600 600 N 2298424 283086 product 589005 M 0 589005
0 2_x2zj-pj.png 600 600 N 2298425 283087 product 589005 M 0 589005
0 1_tpun-9r.png 600 600 N 2298678 283098 product 589031 M 0 589031
0 1_tpun-9r.png 600 600 N 2298741 283099 product 589031 M 0 589031
0 1_tpun-9r.png 600 600 N 2298742 283100 product 589031 M 0 589031
0 1_tpun-9r.png 600 600 N 2298743 283101 product 589031 M 0 589031
0 1_tpun-9r.png 600 600 N 2298744 283102 product 589031 M 0 589031
0 1_tpun-9r.png 600 600 N 2298745 283103 product 589031 M 0 589031
0 2_vm4r-ot.png 600 600 N 2299300 283125 product 589070 M 0 589070
0 2_5c9q-w3.png 600 600 N 2299303 283126 product 589073 M 0 589073
0 2_jn3o-gs.png 600 600 N 2299305 283127 product 589075 M 0 589075
0 2_epva-sl.png 600 600 N 2299307 283128 product 589077 M 0 589077
0 2_l26l-b3.png 600 600 N 2299312 283129 product 589082 M 0 589082
0 2_e4ot-cq.png 600 600 N 2299314 283130 product 589084 M 0 589084
0 Untitled_design__50_.png 600 600 N 2316047 284472 product 591304 M 0 591304
0 Untitled_design__50_.png 600 600 N 2316048 284473 product 591304 M 0 591304
0 Untitled_design__50_.png 600 600 N 2316049 284474 product 591304 M 0 591304
0 Untitled_design__50_.png 600 600 N 2316050 284475 product 591304 M 0 591304
0 2_qz2d-fb.png 600 600 N 2336940 285797 product 592282 M 0 592282
0 CRYSTAL_DELUXE1.jpg 1280 852 N 2427200 286500 product 574382 M 0 574382
0 CRYSTAL_DELUXE1.jpg 1280 852 N 2427201 286501 product 574382 M 0 574382
0 CRYSTAL_DELUXE1.jpg 1280 852 N 2427202 286502 product 574382 M 0 574382
0 CRYSTAL_DELUXE1.jpg 1280 852 N 2427203 286503 product 574382 M 0 574382
0 CRYSTAL_DELUXE1.jpg 1280 852 N 2427204 286504 product 574382 M 0 574382
0 CRYSTAL_DELUXE1.jpg 1280 852 N 2427205 286505 product 574382 M 0 574382
0 Untitled_design__72_.png 1080 1080 N 2439885 286533 product 632020 M 0 632020
0 Untitled_design__72_.png 1080 1080 N 2439929 286536 product 632020 M 0 632020
0 Untitled_design__72_.png 1080 1080 N 2439930 286537 product 632020 M 0 632020
0 Untitled_design__72_.png 1080 1080 N 2439931 286538 product 632020 M 0 632020
0 Diamond_Of_Bodrum1.jpg 1200 900 N 2445044 286557 product 575593 M 0 575593
0 salmakis.jpg 1280 853 N 2445120 286561 product 575894 M 0 575894
0 salmakis.jpg 1280 853 N 2445121 286562 product 575894 M 0 575894
0 salmakis.jpg 1280 853 N 2445122 286563 product 575894 M 0 575894
0 salmakis.jpg 1280 853 N 2445123 286564 product 575894 M 0 575894
0 salmakis.jpg 1280 853 N 2445124 286565 product 575894 M 0 575894
0 salmakis.jpg 1280 853 N 2445146 286569 product 575894 M 0 575894
0 kadikale.jpg 880 421 N 2445199 286574 product 575887 M 0 575887
0 kadikale.jpg 880 421 N 2445200 286575 product 575887 M 0 575887
0 kadikale.jpg 880 421 N 2445202 286577 product 575887 M 0 575887
0 my_ella_1.jpg 880 421 N 2463328 286602 product 575652 M 0 575652
0 my_ella_1.jpg 880 421 N 2463329 286603 product 575652 M 0 575652
0 my_ella_1.jpg 880 421 N 2463330 286604 product 575652 M 0 575652
0 my_ella_1.jpg 880 421 N 2463331 286605 product 575652 M 0 575652
0 my_ella_1.jpg 880 421 N 2463333 286607 product 575652 M 0 575652
0 kefaluka1.jpg 1280 853 N 2463434 286611 product 575782 M 0 575782
0 kefaluka1.jpg 1280 853 N 2463435 286612 product 575782 M 0 575782
0 kefaluka1.jpg 1280 853 N 2463436 286613 product 575782 M 0 575782
0 kefaluka1.jpg 1280 853 N 2463437 286614 product 575782 M 0 575782
0 kefaluka1.jpg 1280 853 N 2463439 286616 product 575782 M 0 575782
0 armonia_1.jpg 880 421 N 2464780 286620 product 575602 M 0 575602
0 armonia_1.jpg 880 421 N 2464781 286621 product 575602 M 0 575602
0 armonia_1.jpg 880 421 N 2464782 286622 product 575602 M 0 575602
0 armonia_1.jpg 880 421 N 2464785 286625 product 575602 M 0 575602
0 2_qz2d-fb.png 600 600 N 3840793 425349 product 592282 M 0 592282
0 2_qz2d-fb.png 600 600 N 3840797 425350 product 592282 M 0 592282