Added mysqli_real_escape_string protection to query