PDO execute() with single parameter array
===

I am having a problem with the WAMPSERVER notifications/warnings.

I basically have the following code:


    $dbh = Database::connect();
    $query = "SELECT * FROM users WHERE email = ?";
    $sth = $dbh->prepare($query);
    $sth->setFetchMode(PDO::FETCH_CLASS, 'user');
    $sth->execute(array($email));
    if($user = $sth->fetch())
        return $user;
    return NULL;


the thing is: execute only accepts an array as argument, and I only have 1 parameter to use on it. The problem is that since I only use 1 variable in the array, I get the following notice from WAMPSERVER: "Notice: Array to string conversion in C:\wamp\www\..."

What should I do to avoid it? This problem came along with the new version of WAMPSERVER.

Thanks a lot!