London: One Direction star Niall Horan has made an appearance in J.K. Rowling's new book, "Career of Evil", which she's published under her pen name Robert Galbraith.

Niall Horan and J.K. Rowling
Niall Horan (Pic/Santa Banta) and J.K. Rowling (Pic/AFP)

It's the third book which revolves around private investigator Cormoran Strike, reports

Murdered character Kelsey had an obsession with the Irish charmer, much to the annoyance of her sister Hazel, and made up stories about him being her boyfriend.

One particular excerpt reads: "The band. They're a band that came third on 'The X Factor'. She's obsessed - she was obsessed - and Niall was her favourite.

"So when she says she's met a boy called Niall and he's 18 and he's got a motorbike, I mean, what were we supposed to think."