$res=$wpdb->get_results('SELECT * FROM tospur_house WHERE name="'.$params['name'].'" flat="'.$_POST['flat'].'" and suite="'.$_POST["suite"].'" and house_type=1',OBJECT);
'name'=>$_POST['housename'],
'house_number'=>$_POST['house_number'],
'total_price'=>$_POST['total_price'],
'average_price'=>$_POST['average_price'],
'buildproperty_id'=>$_POST['buildproperty_id'],
'covered_area'=>$_POST['covered_area'],
'floor'=>$_POST['floor'],
'faceto'=>$_POST['faceto'],
'decoration'=>$_POST['decoration'],
'age'=>$_POST['age'],
'flat'=>$_POST['flat'],
'suite'=>$_POST["suite"],
'overview'=>$_POST['overview'],
'address'=>$_POST['address'],
'community_name'=>$_POST['community_name'],
'traffic'=>$_POST['traffic'],
'periphery'=>$_POST['periphery'],
'house_type'=>1
);
$res=$wpdb->get_results('SELECT * FROM tospur_house WHERE flat="'.$_POST['flat'].'" and suite="'.$_POST["suite"].'" and house_type=1',OBJECT);