SELECT * FROM location WHERE id = ANY($1);