diff --git a/footnotes.module b/footnotes.module
index 4e11f49..1284e7b 100644
--- a/footnotes.module
+++ b/footnotes.module
@@ -572,14 +572,14 @@ function footnotes_init() {
 function footnotes_is_footnotes_later( $format, $caller, $caller_delta=0, $footnotes_delta=0) {
     //Determine caller's weight in the current input format
     $result = 
-       db_query( "SELECT weight FROM filters WHERE module='%s' AND format=%d AND delta=%d;",
+       db_query( "SELECT weight FROM {filters} WHERE module='%s' AND format=%d AND delta=%d;",
                         $caller, $format, $caller_delta );
     $caller_weight = db_fetch_object( $result );
     $caller_weight = $caller_weight->weight;
 
     //See if Footnotes is present in the input format and if weight is higher
     $result = 
-       db_query( "SELECT weight FROM filters WHERE module='%s' AND format=%d AND delta=%d;",
+       db_query( "SELECT weight FROM {filters} WHERE module='%s' AND format=%d AND delta=%d;",
                         'footnotes', $format, $footnotes_delta );
     $fn_weight = db_fetch_object( $result );
     if( $fn_weight ) {
