QUERY PLAN
Sort (cost=16.63..16.63 rows=1 width=390)
Sort Key: r.created_at DESC
-> Nested Loop (cost=0.57..16.62 rows=1 width=390)
-> Index Scan using tbl_approves_pkey on tbl_approves r (cost=0.28..8.29 rows=1 width=390)
Index Cond: (id = 1731)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.29..8.31 rows=1 width=4)
Index Cond: ((object_id = 1731) AND (term_id = 17))
Filter: (taxonomy_id = 312)