MILLIONS of pounds from a flagship Scottish Government environmental fund has been misspent by councils, The Ferret can reveal.