SELECT 
  product_id, 
  amount 
FROM 
  cscart_products 
WHERE 
  master_product_id = 820

Query time 0.00030

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.0052712,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_products",
          "access_type": "ref",
          "possible_keys": ["idx_master_product_id"],
          "key": "idx_master_product_id",
          "key_length": "4",
          "used_key_parts": ["master_product_id"],
          "ref": ["const"],
          "loops": 1,
          "rows": 2,
          "cost": 0.0052712,
          "filtered": 100
        }
      }
    ]
  }
}

Result

product_id amount
821 1
826 0