SELECT 
  COUNT(*) 
FROM 
  netting_booking_and_reservation 
WHERE 
  `booking_type` != 'N' 
  AND `product_id` = '531'

Query time 0.00035

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}

Result

COUNT(*)
0