SELECT 
  1 
FROM 
  cscart_ec_print_temp_designs 
WHERE 
  session_id = '8P8Y-VRMF-QNH5-72TJ-CCWH-JL5J-LZL9-ZDO0' 
  AND product_id = 31 
  AND expires_at > 1770197598 
  AND confirmed = 'Y' 
LIMIT 
  1

Query time 0.00024

JSON explain

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