SELECT 
  1 
FROM 
  cscart_ec_print_temp_designs 
WHERE 
  session_id = '9P03-R4GZ-G85Z-ISXV-O1C3-DALQ-SC05-E0HH' 
  AND product_id = 31 
  AND expires_at > 1770197143 
  AND confirmed = 'Y' 
LIMIT 
  1

Query time 0.00036

JSON explain

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