QUERY PLAN
Seq Scan on tbl_erp_inventory_product_sns (cost=0.00..1.95 rows=1 width=142)
Filter: ((erp_inventory_product_id = 517) AND ((NOT is_used) OR (id = ANY ('{55,56,55,56}'::integer[]))))