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 = 'A' 
  AND q_images_links.object_id IN (
    '1505', '1506', '1507', '1508', '1509', 
    '1510', '1511', '1512', '1513', '1514', 
    '1515', '1516', '1517', '1518'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00102

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "81.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "14.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": 14,
            "rows_produced_per_join": 14,
            "filtered": "100.00",
            "index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('1505','1506','1507','1508','1509','1510','1511','1512','1513','1514','1515','1516','1517','1518')))",
            "cost_info": {
              "read_cost": "30.81",
              "eval_cost": "2.80",
              "prefix_cost": "33.61",
              "data_read_per_join": "1K"
            },
            "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": 14,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "14.00",
              "eval_cost": "2.80",
              "prefix_cost": "50.41",
              "data_read_per_join": "10K"
            },
            "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": 14,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "14.00",
              "eval_cost": "2.80",
              "prefix_cost": "67.21",
              "data_read_per_join": "8K"
            },
            "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 CC432004.jpg 1733 1490 N 3553 1509 product 5527 A 1 5527
0 SG-003__2_.jpg 1630 1728 N 3546 1505 product 5520 A 10 5520
0 SG-004__2_.jpg 1430 1608 N 3548 1506 product 5522 A 10 5522
0 SG-005__2_.jpg 1578 1563 N 3550 1507 product 5524 A 10 5524
0 SG-006__2_.jpg 1683 1625 N 3552 1508 product 5526 A 10 5526
0 CSEU290005__2_.jpg 1933 1480 N 3556 1510 product 5530 A 10 5530
0 CSEU290071__2_.jpg 1933 1451 N 3562 1513 product 5536 A 10 5536
0 CC432003__2_.jpg 2059 1463 N 3570 1517 product 5544 A 10 5544
0 CSEU290064__3_.jpg 1932 1471 N 3558 1511 product 5532 A 20 5532
0 CSEU290068__3_.jpg 1813 1351 N 3560 1512 product 5534 A 20 5534
0 CSEU290073__3_.jpg 1977 1440 N 3564 1514 product 5538 A 20 5538
0 CSEU290076__3_.jpg 1901 1385 N 3566 1515 product 5540 A 20 5540
0 SMBBU13-33__3_.jpg 1899 1452 N 3568 1516 product 5542 A 20 5542
0 CC432005__3_.jpg 1970 1468 N 3572 1518 product 5546 A 20 5546