QUERY PLAN
Aggregate (cost=14.07..14.08 rows=1 width=32)
-> Seq Scan on tbl_erp_inventory_product_spents (cost=0.00..14.06 rows=1 width=4)
Filter: (erp_inventory_product_id = 512)