Update Registration.php - compatibility with Mysql 5.0