Without a doubt, one of my favorite books in middle school and high school was Q-Squared by Peter David. Q was always one of my favorite characters from the Star Trek: TNG universe, and I loved reading books that focused on him. I liked this one so much that I read it twice, and then read select passages over and over.
From what I remember, this book had fun little moments like transporting characters from Winnie the Pooh to the enterprise (or something like that) and Q telling Picard that he helped God create the Earth and was personally responsible for the existence of the platypus.
This book is also written by Peter David, who is one of my favorite authors and TV writers because his work always makes me laugh (because it’s funny. Not because it’s bad).