[wp-hackers] Pull Latest Post from Each of 6 Categories

Mike Schinkel mikeschinkel at newclarity.net
Tue May 5 04:37:45 GMT 2009


Nathan:

What version of MySQL is your site running on?  If v5.0 or better you can use a correlated subquery which doesn't require the duplication of code that Paul's (otherwise good) example required:

http://dev.mysql.com/doc/refman/5.0/en/correlated-subqueries.html


-Mike Schinkel
Custom Wordpress Plugins
http://mikeschinkel.com/custom-wordpress-plugins


More information about the wp-hackers mailing list