UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'FzlS6letbKEa8uTDAea4CGrYYjdq2lgMPwzWwiNSLzM=' 
WHERE 
  key_id = '028f5b2416af90e2fea4acbd56faf781db40172593cc7d4836520e5302c52358' 
  AND (
    token = 'FzlS6letbKEa8uTDAea4CGrYYjdq2lgMPwzWwiNSLzM=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00021