UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'MRL6exnW9muzqzRJ8bbc8c3pKkKoUpddjR4suGD4Q1M=' 
WHERE 
  key_id = '932b4ee86912b57583f238502e33101fac47f507b91dcb3d7aa0bcb40abebd66' 
  AND (
    token = 'MRL6exnW9muzqzRJ8bbc8c3pKkKoUpddjR4suGD4Q1M=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00029