UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'V3rKks8a//HdfNxBIAt2X/hiHWclfkhisESXCXJOXiQ=' 
WHERE 
  key_id = '922f4a9e751e7f4de0d822cd4eceae9cc9f5728a4f0adca558a6e155e4bdf50b' 
  AND (
    token = 'V3rKks8a//HdfNxBIAt2X/hiHWclfkhisESXCXJOXiQ=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00031