--- ./modules/freelinking/freelinking.module	2005-05-02 15:12:15.000000000 -0700
+++ ./modules/freelinking/freelinking.module	2005-05-02 15:12:01.000000000 -0700
@@ -33,10 +33,10 @@
 function freelinking_page($thetitle = NULL) {
   if ($thetitle) { // find the matching title
     $title = addslashes(urldecode($thetitle));
-    $query = 'SELECT nid FROM {node} n WHERE title = "%s"';
+    $query = "SELECT nid FROM {node} n WHERE title ='%s'";
     $noderestrict = variable_get('freelinking_restriction', 'none');
     if ($noderestrict != 'none') { // need to add to the where clause
-      $query .= ' AND type = "%s"';
+      $query .= " AND type = '%s'";
       $result = db_query($query, $title, $noderestrict);
     }
     else { // no restriction, query is fine, but db_query doesn't need the extra argument
