Mysql Group по полученной колонке
/* you can group by using the alias name*/
SELECT width*height as area FROM images GROUP BY area;
Friendly Hawk
/* you can group by using the alias name*/
SELECT width*height as area FROM images GROUP BY area;