| Lines 57-63
          WHERE bo.dateenrolled >= ?|;
      
      
        Link Here | 
        
          | 57 |     if( $no_overwrite ) { | 57 |     if( $no_overwrite ) { | 
        
          | 58 |         $sql .= " AND mp.borrowernumber IS NULL"; | 58 |         $sql .= " AND mp.borrowernumber IS NULL"; | 
        
          | 59 |     } | 59 |     } | 
          
            
              | 60 |     $sql .= " AND categorycode = ?" if $category; | 60 |     $sql .= " AND bo.categorycode = ?" if $category; | 
        
          | 61 |     my $sth = $dbh->prepare($sql); | 61 |     my $sth = $dbh->prepare($sql); | 
        
          | 62 |     $sth->execute($since, $category || () ); | 62 |     $sth->execute($since, $category || () ); | 
        
          | 63 |     my $cnt = 0; | 63 |     my $cnt = 0; | 
            
              | 64 | -  |  |  |