QUERY PLAN
Sort (cost=126.72..126.72 rows=1 width=215)
Sort Key: pt.id
-> Nested Loop Left Join (cost=0.44..126.71 rows=1 width=215)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships pt (cost=0.29..118.50 rows=1 width=85)
Index Cond: ((object_id = ANY ('{4072,4070,4042,4062,4052,4059,4066,4067,4051,3940,3928,3927,3963,4041,4069,4045}'::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=97)
Index Cond: (pt.taxonomy_id = id)