UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'K93JwzLRY1i5fjMKSmU12UGk7Jd9dXAZQSO/slBjmTo=' 
WHERE 
  key_id = 'f72cb28689f381b694f87bb90e7a1fed315b797741242bc8561f09a431b163ce' 
  AND (
    token = 'K93JwzLRY1i5fjMKSmU12UGk7Jd9dXAZQSO/slBjmTo=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00023