Try the following plugin, [Query Interface][1], which will let you show the queries as well as give you an interface where you can also check that what the query is taking by checking its indexes or explanation. [1]: http://wordpress.org/plugins/query-interface/