QUERY PLAN
Aggregate (cost=1.68..1.69 rows=1 width=8)
-> Seq Scan on tbl_erp_inventory_product_sns (cost=0.00..1.68 rows=1 width=0)
Filter: (erp_inventory_product_id = 517)