metti gli apici nella select

Codice PHP:
  $query_mail "SELECT ver FROM users WHERE email='$tempmail'"