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 (
    '6957', '6958', '6959', '6960', '6961', 
    '6962', '6963', '6964', '6965', '6966', 
    '6967', '6968', '6969', '6970', '6971', 
    '6972', '6974', '6977', '6978', '6979', 
    '4497', '4498', '4499', '4500', '4501', 
    '4502', '4503', '4504', '4505', '4506', 
    '4507', '4509'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00212

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "185.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "32.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": 32,
            "rows_produced_per_join": 32,
            "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 ('6957','6958','6959','6960','6961','6962','6963','6964','6965','6966','6967','6968','6969','6970','6971','6972','6974','6977','6978','6979','4497','4498','4499','4500','4501','4502','4503','4504','4505','4506','4507','4509')))",
            "cost_info": {
              "read_cost": "70.41",
              "eval_cost": "6.40",
              "prefix_cost": "76.81",
              "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "115.21",
              "data_read_per_join": "24K"
            },
            "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "153.61",
              "data_read_per_join": "19K"
            },
            "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 item_XL_5166153_1945622.jpg 565 433 N 9602 4497 product 11567 M 0 11567
0 item_XL_22469620_30630104.jpg 513 489 N 9604 4498 product 11569 M 0 11569
0 item_XL_11411823_16598046.jpg 403 600 N 9605 4499 product 11570 M 0 11570
0 item_XL_5140328_1885760.jpg 248 225 N 9610 4502 product 11575 M 0 11575
0 item_XL_7642241_6413167.jpg 416 512 N 9614 4503 product 11579 M 0 11579
0 TH2002.jpg 1200 900 N 9618 4505 product 11583 M 0 11583
0 PS7002-1.jpg 1200 900 N 9619 4506 product 11584 M 0 11584
0 PS2014.jpg 1200 900 N 9623 4507 product 11588 M 0 11588
0 PC3006.jpg 1200 900 N 9628 4509 product 11593 M 0 11593
0 51iToFqEZtL._SX522_.jpg 522 392 N 11226 4504 product 13188 M 0 13188
0 BM2301.jpeg 1306 979 N 12434 4501 product 14396 M 0 14396
0 ne1005.jpeg 1475 1890 N 12436 4500 product 14398 M 0 14398
0 PS3001.jpg 1200 900 N 13707 6957 product 15669 M 0 15669
0 PS3004.jpg 1200 900 N 13708 6958 product 15670 M 0 15670
0 im34332.jpg 550 550 N 13709 6960 product 15671 M 0 15671
0 71lwyJ8KmpL._SL1500_.jpg 1221 1500 N 13710 6961 product 15672 M 0 15672
0 TH3601.jpg 1200 900 N 13711 6962 product 15673 M 0 15673
0 881285_laica_ne3001w_mini_kompresszoros_inhalator.jpg 720 648 N 13713 6964 product 15675 M 0 15675
0 TH1001.jpg 1200 900 N 13733 6977 product 15695 M 0 15695
0 res_fa5bcf7101ec56cf879f7fe966e46165_450x450_vc88.jpg 450 450 N 13734 6978 product 15696 M 0 15696
0 54833_0.jpg 800 600 N 13736 6979 product 15698 M 0 15698
0 51Uo6o_MtrL._SL1125_.jpg 880 1125 N 13737 6959 product 15699 M 0 15699
0 item_XL_10628786_14007257.jpg 509 422 N 13743 6965 product 15705 M 0 15705
0 51i0ORAytmL._SL1000_.jpg 1000 1000 N 13750 6967 product 15712 M 0 15712
0 Spectrum-Electric-Rechargeable-Breast-Pump_22747716_f40397bfb78d7e41ff717bec4df0c4fc.jpg 750 640 N 13751 6968 product 15713 M 0 15713
0 item_XL_35996790_141140412.jpg 406 600 N 13752 6969 product 15714 M 0 15714
0 IT-121.jpg 954 1551 N 13753 6970 product 15715 M 0 15715
0 VK8201.jpg 904 1280 N 13757 6971 product 15719 M 0 15719
0 BC1005.jpg 1200 900 N 13769 6974 product 15731 M 0 15731
0 BC1005_c4wm-vl.jpg 1200 900 N 13770 6974 product 15732 M 0 15732
0 thermo.jpg 640 626 N 47880 6963 product 49841 M 0 49841
0 sterlizer.jpg 640 626 N 48292 6966 product 50253 M 0 50253
0 food_blender_web.jpg 640 626 N 68825 6972 product 70776 M 0 70776