QUERY PLAN
Sort (cost=211.12..211.13 rows=1 width=100)
Sort Key: pt.id
-> Nested Loop Left Join (cost=0.44..211.11 rows=1 width=100)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships pt (cost=0.29..202.89 rows=1 width=52)
Index Cond: ((object_id = ANY ('{4501,4499,4498,4487,4473,4471,4470,4468,4465,4464,4463,4461,4460,4459,4458,4456,4452,4451,4449,4448}'::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)