diff --git a/trunk/search.pl b/trunk/search.pl index db056fd..afb28ae 100644 --- a/trunk/search.pl +++ b/trunk/search.pl @@ -25,7 +25,7 @@ if($query->param('query')) my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass) or die $dbh->errstr; #prepare query - my $sth = $dbh->prepare(qq{select id, title, description, userid, timestamp from videos where match(title, description) against( ? ) }) or die $dbh->errstr; + my $sth = $dbh->prepare(qq{select id, title, description, userid, timestamp from videos where match(title, description, subject) against( ? ) }) or die $dbh->errstr; #execute it $sth->execute($query->param('query')) or die $dbh->errstr;