$sth = $dbh->prepare("select author, title, language, format, filename, fullpath, category, tags from ebooks where author like'%$searchauth%' and title like'%$searchtitle%' and language='$searchlang' and format='$searchfmt' and category like'%$searchcategory%' and tags like'%$searchtags%' LIMIT 50;");