If I were to take a standard query post.
<?php query_posts('post_type=payment'); while (have_posts()) : the_post();?>
Only this time I would like to query the post by 2 custom fields that it may contain.
<?php query_posts('post_type=payment'.get_post_meta($post->ID,'bookingref', true).get_post_meta($post->ID,'customerref', true) ); while (have_posts()) : the_post(); ?>
That doesn't work. Is something like this possible and how is it done?