Source: http://www.stemlegal.com/strategyblog/2012/wordpress-wednesdays-creating-custom-queries-in-wordpress/