Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`themeparkdb`.`sales`, CONSTRAINT `sales_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)) in /var/www/html/temporary_tenants.php:90 Stack trace: #0 /var/www/html/temporary_tenants.php(90): PDOStatement->execute(Array) #1 /var/www/html/temporary_tenants.php(63): destroyTemporaryTenant(Object(PDO), Array) #2 /var/www/html/index.php(9): cleanupExpiredTemporaryTenants(Object(PDO)) #3 {main} thrown in /var/www/html/temporary_tenants.php on line 90