public static String getName(Categorias cat){
        String sql="SELECT * FROM categorias WHERE idcategorias = '"+cat.getId()+"' ";        
        if(!BD.getInstance().sqlSelect(sql)){
            return null;
        }
        if(!BD.getInstance().sqlFetch()){
            return null;
        }

        return BD.getInstance().getString("nombre");
    }