• If your using an aggregate function in the select, you need to put in a group by clause of all the columns which are not encased in an aggregate

    SELECT name, SUM(population)

    FROM bbc

    WHERE population >1000

    GROUP BY name