-> Seq Scan on tbl_approves r (cost=0.00..570.77 rows=33 width=386)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{4056,4000,3987,3982,3969,3936,3917,3903,3902,3901,3863,3804,3769,3756,3773,3747,3727,3726,3704,3663}'::integer[])))
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..7.83 rows=1 width=4)
Index Cond: ((object_id = r.id) AND (term_id = 17))