SELECT DISTINCT wld_posts.* FROM wld_posts INNER JOIN wld_postmeta ON
( wld_posts.ID = wld_postmeta.post_id ) LEFT JOIN wld_postmeta AS wld_acf_meta ON
wld_posts.ID = wld_acf_meta.post_id WHERE 1=1 AND ( ( ( wld_postmeta.meta_key = '_listing_price' AND CAST(wld_postmeta.meta_value REGEXP '[^0-9]' AS SIGNED) BETWEEN '1' AND '5000' ) ) )
AND wld_posts.post_type = 'listing' AND ((wld_posts.post_status = 'publish'))
$sql = "INSERT INTO users (Email, Password, Name, Surname, type_account, company_name, phone_number)
VALUES ('".$_POST['email']."', '".$_POST['password']."', '".$_POST['name']."', '".$_POST['fname']."',
'".$_POST['type_account']."', '".$_POST['company_name']."', '".$_POST['phone_number']."')";