diff --git a/captcha.module b/captcha.module
index 2aa3a27..1f658b2 100755
--- a/captcha.module
+++ b/captcha.module
@@ -374,7 +374,8 @@ function _captcha_get_posted_captcha_info(array $element, FormStateInterface $fo
         // Invalidate CAPTCHA token to avoid reuse.
         db_update('captcha_sessions')
           ->fields(['token' => NULL])
-          ->condition('csid', $posted_captcha_sid);
+          ->condition('csid', $posted_captcha_sid)
+          ->execute();
       }
     }
     else {
