PHP错误无效参数数:绑定变量的数量与令牌的数量不匹配


PHP Error Invalid parameter number: number of bound variables does not match number of tokens

我得到这个错误无效的参数数:绑定变量的数量不匹配令牌的数量在/home/200228935/public_html/PHPWebServer/savevideo .php第51行

$sql = 'INSERT INTO videogame(developer, name, cost, genre)      
        VALUES(:developer,:name,;cost,:genre)';
        //Allows special characters and slims the chance SQL injection
        $cmd=$conn->prepare($sql);
        $cmd->bindParam(':developer',$developer,PDO::PARAM_STR,50);
        $cmd->bindParam(':name',$name,PDO::PARAM_STR,50);
        $cmd->bindParam(':cost',$cost,PDO::PARAM_INT);
        $cmd->bindParam(':genre',$genre,PDO::PARAM_STR,50);
        $cmd->execute();

第51行$cmd->execute();

;cost改为:cost

$sql字符串