-> Seq Scan on tbl_approves r (cost=0.00..257.48 rows=20 width=468)
Filter: ((status = 2) AND (purchase_contract_id = ANY ('{4449,4448,4384,4382,4342,4340,4225,4175,4051,3973,3774,3766,3707,3654,3568,3557,3394,3283,3106,3091}'::integer[])))
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..8.11 rows=1 width=4)
Index Cond: ((object_id = r.id) AND (term_id = 17))