Try my Custom Field Taxonomies<http://scribu.net/wordpress/custom-field-taxonomies>plugin - it can select multiple key-value pairs. If it doesn't do all that you need, you can at least look in query.php to see how the SQL is done. -- http://scribu.net