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 (
    '37309', '37310', '37311', '37312', 
    '37313', '37314', '37315', '37316', 
    '37317', '37318', '37319', '37320', 
    '37321', '37322', '37323', '37324'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00109

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "145.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "27.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": 27,
            "rows_produced_per_join": 27,
            "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 ('37309','37310','37311','37312','37313','37314','37315','37316','37317','37318','37319','37320','37321','37322','37323','37324')))",
            "cost_info": {
              "read_cost": "48.41",
              "eval_cost": "5.40",
              "prefix_cost": "53.81",
              "data_read_per_join": "2K"
            },
            "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": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "27.00",
              "eval_cost": "5.40",
              "prefix_cost": "86.21",
              "data_read_per_join": "20K"
            },
            "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": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "27.00",
              "eval_cost": "5.40",
              "prefix_cost": "118.61",
              "data_read_per_join": "16K"
            },
            "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 375x500.53614.jpg 375 500 N 58466 37310 product 60422 M 0 60422
0 375x500.12950.jpg 375 500 N 58469 37311 product 60425 M 0 60425
0 download__3_.jpg 300 300 N 58470 37312 product 60426 M 0 60426
0 eau-de-toilette-salvatore-ferragamo-100-black-original-imadu5hvjc9nz9cz.jpeg 416 282 N 58471 37313 product 60427 M 0 60427
0 375x500.47960.jpg 375 500 N 58472 37314 product 60428 M 0 60428
0 41swVlO4fZL.jpg 500 500 N 58473 37315 product 60429 M 0 60429
0 61sHxPqvTZL._SL1000_.jpg 1000 961 N 58475 37317 product 60431 M 0 60431
0 81lgwcQymlL._SX522_.jpg 522 522 N 58476 37318 product 60432 M 0 60432
0 375x500.28130.jpg 375 500 N 58477 37319 product 60433 M 0 60433
0 81xu9Ba6HNL._SL1500_.jpg 1500 1500 N 58479 37320 product 60435 M 0 60435
0 61uQ_-95f8L._SL1000_.jpg 1000 1000 N 58481 37321 product 60437 M 0 60437
0 41OKGb9IzEL.jpg 350 350 N 58483 37322 product 60439 M 0 60439
0 61y0mkJpWIL._SX522_.jpg 522 522 N 58484 37323 product 60440 M 0 60440
0 51O3DFzOpqL._SX522_.jpg 522 653 N 58486 37324 product 60442 M 0 60442
0 41HqZZ8KyYL.jpg 500 500 N 58488 37316 product 60444 M 0 60444