Why does this search function not work?
//Query searchHeroes(DB $db);
function searchHeroes($db){
$select = sprintf("SELECT * FROM Hero WHERE ((Firstname LIKE '%$Firstname%') OR (Lastname LIKE '%$Lastname%') OR (Country LIKE '%$Country%') OR = (Attributes LIKE '%$Attributes%') OR (Type LIKE '%$Type%'));
return $db->query($select);
printf("%s", $select);
}