title: mysql_real_escape_string() function not working in wordpress WP_Query?
body: <p>We have tried this way. But it is not working. please any one tell alternative method in wordpress</p>
  
  <pre><code>$wpdb-&gt;query("UPDATE ".$wpdb-&gt;prefix."recommend_bets SET `title`='".mysqli_real_escape_string($title)."',`category`='".$catID."',....
  </code></pre>