UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'TuxRuImOpyL55QyodeZS0ODHn5seEDdn3vfAf/zkpFU=' 
WHERE 
  key_id = 'a108a5e638f4d97d4ac751d58362cbabab702a0b79f559c24d49267a5b54765d' 
  AND (
    token = 'TuxRuImOpyL55QyodeZS0ODHn5seEDdn3vfAf/zkpFU=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00020