diff --git a/rslib/src/search/sqlwriter.rs b/rslib/src/search/sqlwriter.rs index b2bb7404c..2221e9c1e 100644 --- a/rslib/src/search/sqlwriter.rs +++ b/rslib/src/search/sqlwriter.rs @@ -362,7 +362,7 @@ impl SqlWriter<'_> { let csum = field_checksum(text_nohtml.as_ref()); write!( self.sql, - "(n.mid = {} and n.csum = {} and field_at_index(n.flds, 0) = ?)", + "(n.mid = {} and n.csum = {} and n.sfld = ?)", ntid, csum ) .unwrap();