I want to ask best method to select two meta value from same column
my code
global $wpdb, $bp;
$user_id = get_current_user_id();
$vlues=$wpdb->get_results(sprintf("
SELECT rel.post_id as id, rel.meta_value as val
FROM {$wpdb->posts} AS posts
LEFT JOIN {$wpdb->postmeta} AS rel ON posts.ID = rel.post_id
WHERE posts.post_type = 'books'
AND posts.post_title LIKE '%%fire'
AND posts.post_status = 'publish'
// Select specific book id
AND rel.meta_key = 'books_id'
AND rel.meta_value = '1351'
// Check complete book
AND rel.meta_key = %d
AND rel.meta_value > 0
", $user_id)
);