error in serialize PDO object