QUERY PLAN
Hash Join (cost=4.62..8.56 rows=1 width=55)
Hash Cond: (esgps.erp_sales_gift_id = esgs.id)
-> Seq Scan on tbl_erp_sales_gift_products esgps (cost=0.00..3.52 rows=152 width=55)
-> Hash (cost=4.61..4.61 rows=1 width=4)
-> Seq Scan on tbl_erp_sales_gifts esgs (cost=0.00..4.61 rows=1 width=4)
Filter: (project_id = 4186)