Ethics Issue or Illegal?

A CEO of a startup company has contracted with me to produce a couple of query letters that I will submit to two business magazines, with the goal of writing two separate profile articles on him. If the queries are accepted by the publications, my agreement with the CEO is that he will pay me to then write the articles. However, the magazines will also