QUERY PLAN
HashAggregate (cost=1.20..1.22 rows=1 width=100)
Group Key: product_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..1.15 rows=4 width=16)
Filter: ((inventory > '0'::numeric) AND (product_id = ANY ('{947,2067,2068,2069,2066,2065,2064,2063,2062,2061,2060,2057,2058,2059,2056,2055,2054,2053,2052,2051}'::integer[])))