UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'RB/PdM8bb2ei9WGWkPyTJcOtiQlTr7EldsoOwZZR/6g=' 
WHERE 
  key_id = 'b0ad31c3073acb36531782d99c92dc36b1e0f9c55d7587ad597ec28a793bf748' 
  AND (
    token = 'RB/PdM8bb2ei9WGWkPyTJcOtiQlTr7EldsoOwZZR/6g=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00033