UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'meH0Tyu5poqdAyp3nuoSu909lmSoVLLWLdETfeqvV9A=' 
WHERE 
  key_id = '3112d43ccdc5272595129a0f39fa95ac638f4544bb8276e97994c215c4e5b06e' 
  AND (
    token = 'meH0Tyu5poqdAyp3nuoSu909lmSoVLLWLdETfeqvV9A=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00101