QUERY PLAN
Sort (cost=346.22..346.23 rows=1 width=98)
Sort Key: pt.id
-> Nested Loop Left Join (cost=82.95..346.21 rows=1 width=98)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=82.80..338.00 rows=1 width=51)
Recheck Cond: ((object_id = ANY ('{27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8}'::integer[])) AND (term_id = 18))
Filter: (object_type = 13)
-> Bitmap Index Scan on tbl_term_taxonomy_relationships_object_id_term_id_idx (cost=0.00..82.80 rows=103 width=0)
Index Cond: ((object_id = ANY ('{27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8}'::integer[])) AND (term_id = 18))
-> Index Scan using tbl_term_taxonomies_pkey on tbl_term_taxonomies tt (cost=0.15..8.17 rows=1 width=22)
Index Cond: (pt.taxonomy_id = id)