QUERY PLAN
Sort (cost=211.14..211.14 rows=1 width=98)
Sort Key: pt.id
-> Nested Loop Left Join (cost=0.44..211.13 rows=1 width=98)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships pt (cost=0.29..202.91 rows=1 width=51)
Index Cond: ((object_id = ANY ('{4449,4448,4384,4382,4342,4340,4225,4175,4051,3973,3774,3766,3707,3654,3568,3557,3394,3283,3106,3091}'::integer[])) AND (term_id = 18))
Filter: (object_type = 8)
-> 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)