diff --git a/nodequeue.module b/nodequeue.module
index 70bc9fd..6e9d9b4 100644
--- a/nodequeue.module
+++ b/nodequeue.module
@@ -2817,7 +2817,7 @@ function nodequeue_api_autocomplete($queue, $subqueue, $string) {
   }
   else {
     // Build the constant parts of the query.
-    $query->where('LOWER(n.title) LIKE LOWER(:string)', array(':string' => $string . '%'));
+    $query->where('LOWER(n.title) LIKE LOWER(:string)', array(':string' => '%' . db_like($string) . '%'));
   }
 
   // Call to the API.
