i have an query in mysql zend framwork is there any other way of writing this
$select = $this->select ()
->where ( "phone = '" . $post ['phone'] . "'")
->where(!( "member_id != '" .$post['member_id'] . "'"));
what am trying to do is update phone no of member and see if the phone no already exist in datbase any other way of doing this can someone answer