Question : SQL command not properly ended

VS2005
VB.NET
I am running the following query and am getting the error: "SQL command not properly ended".  I have changed the query in every way possible but still get the error.
Any advice would be great.
Thanks.
Code Snippet:
1:
SELECT broadcastmonth, sum(projectedgross), sum(projectedagencydiscount), sum(projectedrepdiscount), sum(projectedotherdiscount), aeinitials FROM revenue GROUP BY aeinitials, broadcastmonth WHERE network<>'VOD' AND network<>'WEB' AND network<>'CRAL'

Answer : SQL command not properly ended

SELECT broadcastmonth, sum(projectedgross) col1, sum(projectedagencydiscount) col2, sum(projectedrepdiscount) col3, sum(projectedotherdiscount) col4, aeinitials FROM revenue
WHERE network<>'VOD' AND network<>'WEB' AND network<>'CRAL'
GROUP BY aeinitials, broadcastmonth

where clause comes before group by
Random Solutions  
 
programming4us programming4us