--- node_quick_find.module	2008-10-16 16:21:52.000000000 +0200
+++ node_quick_find.module	2009-03-28 13:23:17.000000000 +0100
@@ -176,10 +176,10 @@ function node_quick_find_autocomplete($d
   if ($string) {
     $string = drupal_strtolower($string);
     if (empty($settings['node_types'])) {
-      $result = db_query_range('SELECT title FROM {node} WHERE title LIKE "%s%%"', $string, 0, 10);
+      $result = db_query_range(db_rewrite_sql('SELECT title FROM {node} WHERE title LIKE "%s%%"', $string), 0, 10);
     }
     else {
-      $result = db_query_range('SELECT title FROM {node} WHERE type IN('. db_placeholders($settings['node_types'], 'varchar') .') AND title LIKE "%s%%"', array_merge($settings['node_types'], array($string)), 0, 10);
+      $result = db_query_range(db_rewrite_sql('SELECT title FROM {node} WHERE type IN('. db_placeholders($settings['node_types'], 'varchar') .') AND title LIKE "%s%%"', array_merge($settings['node_types'], array($string))), 0, 10);
     }
     while ($node = db_fetch_object($result)) {
       $matches[$node->title] = check_plain($node->title);
