Index Scan using tbl_attachments_pkey on tbl_attachments (cost=0.29..99.71 rows=25 width=131)
Index Cond: (id = ANY ('{22861,22424,21940,23107,22245,21279,21303,21405,21406,21429,21430,21619,23003,22924,24021,24287,24286,24285,24068,24350,24503,24502,24501,24500,24534}'::integer[]))