Error executing query: SELECT MAX(C.Competitie) FROM competitie C, bondcomp BC WHERE C.Aktief = 'N' AND C.Seizoen = 'Z' AND C.Competitie = BC.Competitie AND BC.Bond = 'BBDB' AND C.Competitie <