This talk will review getting information from the WordPress tables using the WP_Query class. We’ll discuss the various options for getting different types of data, properly escaping input and output, resetting the loop, and possibly storing the results in transients.
View Presentation Slides on Slideshare
Complex queries as opposed to transients