WHERE news_name='".$userdata['user_id']."'
if($data['news_name'] == $userdata['user_id']) { ... } else { echo "atsipisk ūbage"; }