SELECT 
  image_type, 
  show_gallery, 
  gallery_category_id 
FROM 
  cscart_images_links 
WHERE 
  pair_id = 42535

Query time 0.00029

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_images_links",
      "access_type": "const",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["pair_id"],
      "ref": ["const"],
      "rows": 1,
      "filtered": 100
    }
  }
}

Result

image_type show_gallery gallery_category_id
D 0 0