Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`u166789058_trading_POS`.`sales`, CONSTRAINT `fk_sales_customer` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`cus_id`)) in /home/u166789058/domains/encodinginnovations.tech/public_html/inventory/functions.php:64 Stack trace: #0 /home/u166789058/domains/encodinginnovations.tech/public_html/inventory/functions.php(64): PDOStatement->execute() #1 /home/u166789058/domains/encodinginnovations.tech/public_html/inventory/actions/customers/delete.php(15): deleteCustomer() #2 {main} thrown in /home/u166789058/domains/encodinginnovations.tech/public_html/inventory/functions.php on line 64