my $sql = "SELECT * FROM final WHERE pat = \"" . $PatenteToQuery . "\"" and WHERE ped = \"" . $PedimentoToQuery ."\";