MySQL DDL Syntax Error When Creating View
===

I am trying to add a view to a database however when I try and add the view I am warned that I have a ddl syntax error. Any suggestions what is going on here? I am using mysql workbench, and I have been attempting to create this view by right clicking on the views section and clicking "Create View...", it then gives me a blank view with the only line of code being
    CREATE VIEW `METAGENO`.`new_view` AS

After that it is blank. I have run the sql code for the view as a sql query (limiting to 100 or so results) and there aren't any syntax errors with it, the issue seems to be in the "CREATE VIEW" statement mysql workbench generates. 

    CREATE VIEW `METAGENO`.`COMP_REPORT_TEST` AS

    SELECT

    #Table: GENE
    #Symbol: g
    #Column         Output Name
    `g`.`id`     AS `MH_gene_id`,
    `g`.`Name`   AS `MH_name`,
    `g`.`Operon` AS `Operon`,
    
    #Table: FILE
    #Symbol: f
    #Column       Output Name
    `f`.`Path` AS `MH_file`,
    
    #Table: SCAFFOLD
    #Symbol: sc
    `sc`.`Name` AS `MH_scaffold`,
    
    #Table: OPERON
    #Symbol: o
    #Column             Output Name
    `o`.`prime_gene` AS `Operon_Prime_Gene`,
    
    #Table: OPERON SITE
    #Symbol: os
    #Column             Output Name
    `os`.`site`      AS `Site`,
    `os`.`site_type` AS `Site_Type`,
    
    #Table: SITE
    #Symbol: s
    #Column           Output Name
    `s`.`Score`    AS `Site_Score`,
    `s`.`Sequence` AS `Site_Sequence`, 
    
    #Table: MOTIF
    #Symbol: m
    #Column       Output Name
    `m`.`name` AS `Motif`,
    
    #Table: GENE_COGPROT
    #Symbol: gcp
    #Column                Output Name
    `gcp`.`eval_coef`  AS `E_coef`,
    `gcp`.`eval_power` AS `E_power`,
    
    #Table: REF_GENE_INFO
    #Symbol: rgi
    #Column                Output Name
    `rgi`.`gi`          AS `NCBI_gi`,
    `rgi`.`accession`   AS `NCBI_Accession`,
    `rgi`.`description` AS `NCBI_Description`,
    `rgi`.`product`     AS `NCBI_Product`,
    
    #Table: COGPROT_COG
    #Symbol: cpc
    #Column             Output Name
    `cpc`.`cog`     AS `COG`,
    `cpc`.`cogprot` AS `COG_Protein`,
    `cpc`.`cog_org` AS `COG_Protein_organism`,
    
    #Table: COG
    #Symbol: c
    #Column       Output Name 
    `c`.`Name` AS `COG_Description`,
    
    #Table: COG_FUNCTIONAL_GROUP
    #Symbol: cfg
    #Column         Output Name
    `cfg`.`id`   AS `COG_Group`,
    `cfg`.`Desc` AS `COG_Group_Description`,
    
    #Table: COG_ORG
    #Symbol: co
    #Column         Output Name
    `co`.`taxid` AS `Tax_id`,
    `co`.`name`  AS `Organism_Name`
    
    
    from (((((((((((((
              `GENE`                 `g`  
         join `FILE`                 `f`  ) 
         join `SCAFFOLD`             `sc` ) 
         join `OPERON`               `o`  ) 
         join `OPERON_SITE`          `os` ) 
         join `SITE`                 `s`  ) 
         join `MOTIF`                `m`  ) 
         join `GENE_COGPROT`         `gcp`) 
         join `COGPROT_COG`          `cpc`) 
         join `COG`                  `c`  ) 
         join `COG_GROUP`            `cg` ) 
         join `COG_FUNCTIONAL_GROUP` `cfg`) 
         join `REF_GENE_INFO`        `rgi`) 
         join `COG_ORG`              `co` )
    
         where (
                  (`g`  . `Operon`   = `o`  . `id`     ) 
              and (`o`  . `File`     = `f`  . `id`     ) 
              and (`o`  . `Scaffold` = `sc` . `id`     ) 
              and (`o`  . `id`       = `os` . `operon` ) 
              and (`os` . `site`     = `s`  . `id`     ) 
              and (`s`  . `Motif`    = `m`  . `id`     ) 
              and (`g`  . `id`       = `gcp`. `gene`   ) 
              and (`gcp`. `cogprot`  = `cpc`. `gi`     ) 
              and (`cpc`. `gi`       = `rgi`. `gi`     ) 
              and (`cpc`. `cog`      = `c`  . `id`     ) 
              and (`cpc`. `cog`      = `c`  . `id`     ) 
              and (`c`  . `id`       = `cg` . `COG`    ) 
              and (`cg` . `GROUP`    = `cfg`. `id`     ) 
              and (`cpc`. `cog_org`  = `co` . `cog_org`))
  
         GROUP BY `o`.`id` HAVING MAX(`s`.`Score`)