"a FOIA".
That's why you get "an X-Ray"
See http://www.englishpage.com/articles/a-vs-an.htm (USE 6)
> It was initially called “Structured English Query Language” (SEQUEL) and pronounced “sequel”, though it later had to have its name shortened to “Structured Query Language” (SQL) due to trademark issues.
Ie: a friend.