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.image_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 (
    '29790', '29793', '29794', '29796', 
    '29800', '29801', '29806', '29813', 
    '29818', '29825', '29829', '29832', 
    '29833', '29834', '29835', '29836', 
    '29838', '29843', '29849', '29850', 
    '29852', '29854', '29860', '29862', 
    '29864', '29876', '29878', '29904', 
    '29905', '30349'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00143

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "404.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "78.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": 78,
            "rows_produced_per_join": 78,
            "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 ('29790','29793','29794','29796','29800','29801','29806','29813','29818','29825','29829','29832','29833','29834','29835','29836','29838','29843','29849','29850','29852','29854','29860','29862','29864','29876','29878','29904','29905','30349')))",
            "cost_info": {
              "read_cost": "123.61",
              "eval_cost": "15.60",
              "prefix_cost": "139.21",
              "data_read_per_join": "7K"
            },
            "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.image_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 78,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "78.00",
              "eval_cost": "15.60",
              "prefix_cost": "232.81",
              "data_read_per_join": "59K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ]
          }
        },
        {
          "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": 78,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "78.00",
              "eval_cost": "15.60",
              "prefix_cost": "326.41",
              "data_read_per_join": "46K"
            },
            "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 47271 29836 product 49233 M 0
0 47273 29835 product 49235 M 0
0 47275 29834 product 49237 M 0
0 47277 29833 product 49239 M 0
0 47284 29829 product 49246 M 0
0 47288 29825 product 49250 M 0
0 47297 29818 product 49259 M 0
0 47321 29806 product 49283 M 0
0 47328 29801 product 49290 M 0
0 47337 29796 product 49299 M 0
0 47341 29794 product 49303 M 0
0 47342 29793 product 49304 M 0
0 47355 29878 product 49317 M 0
0 47358 29876 product 49320 M 0
0 47380 29864 product 49342 M 0
0 47382 29862 product 49344 M 0
0 47384 29860 product 49346 M 0
0 47390 29854 product 49352 M 0
0 47392 29852 product 49354 M 0
0 47394 29850 product 49356 M 0
0 47395 29849 product 49357 M 0
0 47401 29843 product 49363 M 0
0 47404 29832 product 49366 M 0
0 47418 29905 product 49380 M 0
0 47733 29790 product 49694 M 0
0 48559 30349 product 50520 M 0
0 52787 29800 product 54748 M 0
0 53179 29813 product 55140 M 0
0 81243 29838 product 83186 M 0
0 81513 29904 product 83456 M 0