1 - Just do two queries, use the results from one in one location, use the results from the other in the other location.
2 - There are literally hundreds of books on MySQL. I sure can't recommend "the best" one, but if nobody else gives you a better recommendation, just check with Amazon.com or one of the technical publisher's web sites (O'Reilly or Wrox or Que, etc.). Read the table of contents and if they have a statement about whether the book is intended for beginners, intermediate or advanced, and check the publication date--you probably don't want to waste your time on an out-of-date book.