SELECT 
  q_images.*, 
  q_images_links.*, 
  q_common_descriptions.description AS alt, 
  q_images.image_id AS images_image_id 
FROM 
  q_images_links 
  LEFT JOIN q_images ON q_images_links.detailed_id = q_images.image_id 
  LEFT JOIN q_common_descriptions ON q_common_descriptions.object_id = q_images.image_id 
  AND q_common_descriptions.object_holder = 'images' 
  AND q_common_descriptions.lang_code = 'en' 
WHERE 
  q_images_links.object_type = 'product' 
  AND q_images_links.type = 'M' 
  AND q_images_links.object_id IN (
    '13593', '13601', '14240', '14241', 
    '14242', '14243', '14244', '14245', 
    '14246', '14247', '14248', '14249', 
    '14250', '14251', '14252', '14253', 
    '14254', '14255', '14256', '14257', 
    '14258', '14259', '14260', '14261', 
    '14263', '14264', '14265', '14266', 
    '14267', '14268', '14269', '14270'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00173

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "214.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "38.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "q_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": 38,
            "rows_produced_per_join": 38,
            "filtered": "100.00",
            "index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('13593','13601','14240','14241','14242','14243','14244','14245','14246','14247','14248','14249','14250','14251','14252','14253','14254','14255','14256','14257','14258','14259','14260','14261','14263','14264','14265','14266','14267','14268','14269','14270')))",
            "cost_info": {
              "read_cost": "77.61",
              "eval_cost": "7.60",
              "prefix_cost": "85.21",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "q_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "portal.q_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 38,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "38.00",
              "eval_cost": "7.60",
              "prefix_cost": "130.81",
              "data_read_per_join": "29K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ],
            "attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
          }
        },
        {
          "table": {
            "table_name": "q_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "107",
            "ref": [
              "portal.q_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 38,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "38.00",
              "eval_cost": "7.60",
              "prefix_cost": "176.41",
              "data_read_per_join": "22K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_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 31HGDHQOJ8L.jpg 500 500 N 27487 13593 product 29449 M 0 29449
0 41UtHnhCu0L.jpg 500 500 N 27495 13601 product 29457 M 0 29457
0 BE_171C13.jpg 1130 1515 N 28147 14241 product 30109 M 0 30109
0 BE_38C60.jpg 1433 1920 N 28151 14245 product 30113 M 0 30113
0 BE_32C13.jpg 1433 1920 N 28153 14247 product 30115 M 0 30115
0 BE_46C314.jpg 1057 1416 N 28154 14248 product 30116 M 0 30116
0 BE_SA601.jpg 1073 1365 N 28155 14249 product 30117 M 0 30117
0 BE_A555.jpg 1036 1372 N 28156 14250 product 30118 M 0 30118
0 BE_A511C01.jpg 1045 1654 N 28157 14251 product 30119 M 0 30119
0 BE_SA602.jpg 1069 1384 N 28158 14252 product 30120 M 0 30120
0 BE_41C01.jpg 452 606 N 28159 14253 product 30121 M 0 30121
0 BE_P8C41.jpg 1127 1513 N 28160 14254 product 30122 M 0 30122
0 BE_210C11.jpg 1130 1515 N 28161 14255 product 30123 M 0 30123
0 BE_40C21.jpg 1133 1517 N 28162 14256 product 30124 M 0 30124
0 BE_161C01.jpg 1130 1515 N 28163 14257 product 30125 M 0 30125
0 BE_33C13.jpg 1130 1515 N 28164 14258 product 30126 M 0 30126
0 BE_47C27.jpg 1433 1920 N 28165 14259 product 30127 M 0 30127
0 BE_P8C50.jpg 1433 1920 N 28166 14260 product 30128 M 0 30128
0 BE_45C314.jpg 1433 1920 N 28167 14261 product 30129 M 0 30129
0 BE_170C20.jpg 1433 1920 N 28169 14263 product 30131 M 0 30131
0 BE_161C52.jpg 1433 1920 N 28170 14264 product 30132 M 0 30132
0 BE_66C01.jpg 1433 1920 N 28171 14265 product 30133 M 0 30133
0 BE_52C27.jpg 1055 1414 N 28172 14266 product 30134 M 0 30134
0 BE_66C63.jpg 1064 1400 N 28173 14267 product 30135 M 0 30135
0 BE_40C20.jpg 1055 1414 N 28174 14268 product 30136 M 0 30136
0 BE_170C01.jpg 1055 1414 N 28175 14269 product 30137 M 0 30137
0 BE_47C01.jpg 1055 1414 N 28176 14270 product 30138 M 0 30138
0 31or753eHSL._AC_SY400_.jpg 406 196 N 59948 14240 product 61904 M 0 61904
0 61igSVDHhNL._SL1500_.jpg 1500 1198 N 59949 14242 product 61905 M 0 61905
0 71Ase2C-A5L._SL1500_.jpg 1500 1141 N 59951 14243 product 61907 M 0 61907
0 61dmesRtR-L._SL1500_.jpg 1500 1131 N 59952 14244 product 61908 M 0 61908
0 BE_41C22.jpg 1433 1920 N 28152 14246 product 30114 M 1 30114