aggregating sums for specific time but would like to have multiple times in the same query
select menu_item_id, 
       menu_item_header, 
       sum( case when created_at between '2018-01-01' 
                                     and '2018-12-31'
                 then quantity
                 end ) sum_2018,
       sum( case when created_at between '2019-01-01' 
                                     and '2019-12-31'
                 then quantity
                 end ) sum_2019
from line_items 
where order_id in ( select id 
                    from orders 
                    where menu_id=807 
                      and stripe_transaction_state='paid' 
                      and created_at between '2018-01-01' 
                                         and '2019-12-31' ) 
group by menu_item_id, 
         menu_item_header 
order by menu_item_id;