UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/EbqlxspVxx8H4JtGrPyHesOFB4UCNrwfdx5aZlCG/g=' 
WHERE 
  key_id = '06d0da0ccbf393c26f18c8c89a45af70aae2915c3595a112cd8af46fcfdd1425' 
  AND (
    token = '/EbqlxspVxx8H4JtGrPyHesOFB4UCNrwfdx5aZlCG/g=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00026