You should include all the non-aggregated fields in the group by expression. Try This:
select pid, productname, price, count(1) as ProductsSold,count(1)*price as Income
from products p, sells s
where p.pid = s.sellproductid
group by pid, productname, price