SELECT 
  1 
FROM 
  cscart_ec_print_temp_designs 
WHERE 
  session_id = 'TNKQ-1V58-TT6F-4GTQ-G3JU-A898-O7FP-BBQW' 
  AND product_id = 31 
  AND expires_at > 1770174737 
  AND confirmed = 'Y' 
LIMIT 
  1

Query time 0.00031

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}