Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

meta query

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => '_ywar_product_id',
		'value'   => '$product_id',
		'compare' => '=',
		'type'    => 'NUMERIC',
	),
	array(
		'key'     => 'recommend_it',
		'value'   => 'not',
		'compare' => '=',
		'type'    => 'CHAR',
	),
);