QUERY PLAN
Sort (cost=17.24..17.25 rows=1 width=21)
Sort Key: sort
-> Seq Scan on tbl_term_taxonomies (cost=0.00..17.23 rows=1 width=21)
Filter: ((term_id = 12) AND (id = ANY ('{2,1,226,229,5,215,164,181,184,189,205,192,203,198,201,307,185,191,187,197,199,165,142,130,172,133,139,332,341,349,350,356,369,371,377}'::integer[])))