QUERY PLAN
Hash Join (cost=13.01..26.82 rows=2 width=244)
Hash Cond: (tbl_erp_sales_outbound_spent_products.erp_sales_outbound_id = tbl_erp_sales_outbounds.id)
-> Seq Scan on tbl_erp_sales_outbound_spent_products (cost=0.00..13.00 rows=300 width=244)
-> Hash (cost=13.00..13.00 rows=1 width=4)
-> Seq Scan on tbl_erp_sales_outbounds (cost=0.00..13.00 rows=1 width=4)
Filter: ((erp_sales_order_id = 1) AND (status = 2))