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 (
    82069, 82071, 82072, 82073, 82074, 82118, 
    149043, 149047, 149048, 149049, 82038, 
    148884, 148887, 148890, 148893, 148896, 
    148899, 148902, 148905, 148908, 148911, 
    148914, 148917, 148920, 148923, 148926, 
    148929, 148882, 148883, 149042, 149052, 
    149055, 149058, 149061, 149064, 149067, 
    149070, 149073, 149076, 149079, 149082, 
    149085, 149088, 149091, 149094, 149097, 
    149050, 149051, 82052, 82061, 81948, 
    149027, 149030, 149033, 149036, 149039, 
    149025, 149026, 82101, 82103, 82009, 
    149103, 149106, 149109, 149112, 149101, 
    149102, 81647, 149125, 149128, 149123, 
    149124, 81737, 81739, 81655, 81657, 
    81702, 81704, 81826, 81860, 81862, 
    81863
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00276

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "475.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "82.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": 82,
            "rows_produced_per_join": 82,
            "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 (82069,82071,82072,82073,82074,82118,149043,149047,149048,149049,82038,148884,148887,148890,148893,148896,148899,148902,148905,148908,148911,148914,148917,148920,148923,148926,148929,148882,148883,149042,149052,149055,149058,149061,149064,149067,149070,149073,149076,149079,149082,149085,149088,149091,149094,149097,149050,149051,82052,82061,81948,149027,149030,149033,149036,149039,149025,149026,82101,82103,82009,149103,149106,149109,149112,149101,149102,81647,149125,149128,149123,149124,81737,81739,81655,81657,81702,81704,81826,81860,81862,81863)))",
            "cost_info": {
              "read_cost": "180.41",
              "eval_cost": "16.40",
              "prefix_cost": "196.81",
              "data_read_per_join": "7K"
            },
            "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": 82,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "82.00",
              "eval_cost": "16.40",
              "prefix_cost": "295.21",
              "data_read_per_join": "62K"
            },
            "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": 82,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "82.00",
              "eval_cost": "16.40",
              "prefix_cost": "393.61",
              "data_read_per_join": "48K"
            },
            "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 Abito-Lungo-Gonna-Ampia-Glitter-Webmarco__3__gyyx-sh.png 800 800 N 96850 81647 product 89116 M 0 89116
0 Abito-Lungo-In-Tulle-A-Veli-Meraviglioso-Webmarco.png 800 800 N 96858 81655 product 89124 M 0 89124
0 Abito-Lungo-In-Tulle-A-Veli-Meraviglioso-Webmarco__1_.png 800 800 N 96861 81657 product 89126 M 0 89126
0 Abito-Lungo-Teli-in-Tulle-Webmarco.png 800 800 N 96926 81702 product 89185 M 0 89185
0 Abito-Lungo-Teli-in-Tulle-WebMarco__2_.png 800 800 N 96933 81704 product 89190 M 0 89190
0 Abito-Corpetto-In-Pizzo-Incrociato-Webmarco.png 800 800 N 96995 81737 product 89194 M 0 89194
0 Abito-Corpetto-In-Pizzo-Incrociato-WebmarcO__1_.png 800 800 N 96998 81739 product 89196 M 0 89196
0 Abito-Giro-Manica-Tulle-E-Pizzo-WebMarco.png 800 800 N 97135 81826 product 89309 M 0 89309
0 Abito-Giro-Manica-Tulle-E-Pizzo-WebMarcO__1_.png 800 800 N 97172 81860 product 89313 M 0 89313
0 Abito-Giro-Manica-Tulle-E-Pizzo-WebMarcO__2_.png 800 800 N 97176 81862 product 89316 M 0 89316
0 Abito-Giro-Manica-Tulle-E-Pizzo-Webmarco__3_.png 800 800 N 97178 81863 product 89317 M 0 89317
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 97291 81948 product 89375 M 0 89375
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 97407 82038 product 89407 M 0 89407
0 Abito-Sirena-Webmarco.png 800 800 N 97429 82052 product 89425 M 0 89425
0 Abito-Sirena-Webmarco.png 800 800 N 97443 82061 product 89425 M 0 89425
0 Abito-Lungo-Scollo-Americano-Webmarco.png 800 800 N 97454 82069 product 89437 M 0 89437
0 Abito-Lungo-Scollo-Americano-Webmarco.png 800 800 N 97459 82072 product 89437 M 0 89437
0 Abito-Lungo-Scollo-Americano-Webmarco.png 800 800 N 97460 82073 product 89437 M 0 89437
0 Abito-Lungo-Scollo-Americano-Webmarco.png 800 800 N 97461 82074 product 89437 M 0 89437
0 Abito-Raso-e-Macrame-Webmarco.png 800 800 N 97501 82101 product 89478 M 0 89478
0 Abito-Raso-e-Macrame-WebmarCo__1_.png 800 800 N 97506 82103 product 89482 M 0 89482
0 Abito-Lungo-in-Pizzo-e-Tulle-Webmarco.png 800 800 N 97542 82118 product 89502 M 0 89502
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182853 148882 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182854 148883 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182855 148884 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182858 148887 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182861 148890 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182864 148893 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182867 148896 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182870 148899 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182873 148902 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182876 148905 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182879 148908 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182882 148911 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182885 148914 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182888 148917 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182891 148920 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182894 148923 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182897 148926 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182900 148929 product 89407 M 0 89407
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183117 149025 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183118 149026 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183119 149027 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183122 149030 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183125 149033 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183128 149036 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183131 149039 product 89375 M 0 89375
0 Abito-Lungo-in-Pizzo-e-Tulle-Webmarco.png 800 800 N 183141 149047 product 89502 M 0 89502
0 Abito-Lungo-in-Pizzo-e-Tulle-Webmarco.png 800 800 N 183142 149048 product 89502 M 0 89502
0 Abito-Lungo-in-Pizzo-e-Tulle-Webmarco.png 800 800 N 183143 149049 product 89502 M 0 89502
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183144 149050 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183145 149051 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183146 149052 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183149 149055 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183152 149058 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183155 149061 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183158 149064 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183161 149067 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183164 149070 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183167 149073 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183170 149076 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183173 149079 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183176 149082 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183179 149085 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183182 149088 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183185 149091 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183188 149094 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183191 149097 product 162435 M 0 162435
0 Abito-in-Raso-Corpetto-WebmarcO__1_.png 800 800 N 183208 149101 product 89405 M 0 89405
0 Abito-in-Raso-Corpetto-WebmarcO__1_.png 800 800 N 183209 149102 product 89405 M 0 89405
0 Abito-Lungo-Gonna-Ampia-Glitter-Webmarco__3__gyyx-sh.png 800 800 N 183384 149123 product 89116 M 0 89116
0 Abito-Lungo-Gonna-Ampia-Glitter-Webmarco__3__gyyx-sh.png 800 800 N 183385 149124 product 89116 M 0 89116
0 Abito-Lungo-Scollo-Americano-WeBmarco__2_.png 800 800 N 97464 82071 product 89443 M 1 89443
0 Long-Dress-in-Lace-and-Tulle-Webmarco.png 800 800 N 183195 149043 product 162439 M 1 162439
0 Bodice-Satin-Dress-Webmarco.png 800 800 N 183223 149103 product 162453 M 1 162453
0 Bodice-Satin-Dress-Webmarco_h8fw-cn.png 800 800 N 183226 149106 product 162456 M 1 162456
0 Bodice-Satin-Dress-Webmarco_66o7-07.png 800 800 N 183229 149109 product 162459 M 1 162459
0 Bodice-Satin-Dress-Webmarco_vc3i-rr.png 800 800 N 183232 149112 product 162462 M 1 162462
0 Abito-Lungo-Gonna-Ampia-Glitter-Blu-Webmarco_v06b-sc.png 800 800 N 183392 149125 product 162500 M 1 162500
0 Abito-Lungo-Gonna-Ampia-Glitter-Azure-Webmarco_u6b7-a2.png 800 800 N 183395 149128 product 162503 M 1 162503
0 emme-shopping-bodice-satin-dress-webmarco.png 800 800 N 379445 82009 product 172136 M 1 172136
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco_qaid-9x.png 800 800 N 183205 149042 product 162449 M 3 162449