QUERY PLAN
Result (cost=97.53..97.54 rows=1 width=1)
InitPlan 1 (returns $0)
-> Seq Scan on tbl_erp_sales_orders (cost=0.00..97.53 rows=1 width=0)
Filter: ((created_by = 1013) AND (status = ANY ('{1,5,7}'::integer[])))