QUERY PLAN
Sort (cost=318.07..318.08 rows=1 width=98)
Sort Key: pt.id
-> Nested Loop Left Join (cost=82.75..318.06 rows=1 width=98)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=82.60..309.85 rows=1 width=51)
Recheck Cond: ((object_id = ANY ('{52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33}'::integer[])) AND (term_id = 18))
Filter: (object_type = 12)
-> Bitmap Index Scan on tbl_term_taxonomy_relationships_object_id_term_id_idx (cost=0.00..82.60 rows=86 width=0)
Index Cond: ((object_id = ANY ('{52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33}'::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)