QUERY PLAN
Sort (cost=8.32..8.33 rows=1 width=111)
Sort Key: id
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships (cost=0.29..8.31 rows=1 width=111)
Index Cond: ((object_id = 3851) AND (term_id = 18))
Filter: (object_type = 8)