I have a table which is made from a query
CREATE TABLE mycost AS select users.id, sum(fertilizing_buy.cost) AS fertilizing_cost, sum(irrigation.cost) AS irrig