QUERY PLAN
Sort (cost=841.44..841.45 rows=1 width=8)
Sort Key: id
-> Seq Scan on tbl_attachement_relationships (cost=0.00..841.43 rows=1 width=8)
Filter: ((object_type = ANY ('{20011,20012}'::integer[])) AND (object_id = 157))