QUERY PLAN
Aggregate (cost=13.89..13.90 rows=1 width=32)
-> Seq Scan on tbl_erp_inventory_product_spents (cost=0.00..13.89 rows=1 width=4)
Filter: (erp_inventory_product_id = 508)