Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`nttmrqca_3d2`.`erp_purchase_orders`, CONSTRAINT `fk_erp_po_vendor` FOREIGN KEY (`vendor_id`) REFERENCES `erp_vendors` (`id`)) in /home/nttmrqca/public_html/3d_business_pro/erp/vendors/delete.php:7 Stack trace: #0 /home/nttmrqca/public_html/3d_business_pro/erp/vendors/delete.php(7): PDOStatement->execute() #1 {main} thrown in /home/nttmrqca/public_html/3d_business_pro/erp/vendors/delete.php on line 7