QUERY PLAN
Sort (cost=23.25..23.26 rows=1 width=21)
Sort Key: sort
-> Seq Scan on tbl_term_taxonomies (cost=0.00..23.24 rows=1 width=21)
Filter: ((term_id = 12) AND (id = ANY ('{46,107,102,97,197,199,198,202,229,140,142,131,164,167,181,133,134,135,136,137,139,185,191,154,2,6,8,2100000000,1,7,184,189,9,212,153,160,194,204,165,179,226,313,114,156,324,344,349,369,373,377,319,215,232,317}'::integer[])))