Index Scan using tbl_attachments_pkey on tbl_attachments (cost=0.29..86.44 rows=21 width=132)
Index Cond: (id = ANY ('{31205,31224,31331,31368,31381,31585,31651,31406,31710,31787,31838,31843,31862,32006,32008,32009,32010,32013,32137,31844,31845}'::integer[]))