QUERY PLAN
Sort (cost=156.76..156.77 rows=3 width=99)
Sort Key: pt.id
-> Hash Right Join (cost=147.80..156.74 rows=3 width=99)
Hash Cond: (tt.id = pt.taxonomy_id)
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..7.02 rows=302 width=22)
-> Hash (cost=147.76..147.76 rows=3 width=51)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships pt (cost=0.29..147.76 rows=3 width=51)
Index Cond: ((object_id = ANY ('{7505,7502,7501,7499,7498,7497,7494,7476,7396,7354,7341,7338,7339,7340}'::integer[])) AND (term_id = 18))
Filter: (object_type = 11)