Database Error:
PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction in /home/fileknot.com/public_html/app/core/Database.class.php:187 Stack trace: #0 /home/fileknot.com/public_html/app/core/Database.class.php(187): PDOStatement->execute() #1 /home/fileknot.com/public_html/app/helpers/DownloadTrackerHelper.class.php(73): App\Core\Database->query() #2 /home/fileknot.com/public_html/app/controllers/FileController.class.php(158): App\Helpers\DownloadTrackerHelper::clearTimedOutDownloads() #3 [internal function]: App\Controllers\FileController->downloadHandler() #4 /home/fileknot.com/public_html/app/helpers/RouteHelper.class.php(395): call_user_func_array() #5 /home/fileknot.com/public_html/app/core/Framework.class.php(222): App\Helpers\RouteHelper::processRoutes() #6 /home/fileknot.com/public_html/app/core/Framework.class.php(25): App\Core\Framework::dispatch() #7 /home/fileknot.com/public_html/index.php(21): App\Core\Framework::run() #8 {main}

Last Rendered Query:
UPDATE download_tracker SET date_finished=NOW(), status='cancelled' WHERE status='downloading' AND date_updated < DATE_SUB(NOW(), INTERVAL 15 second)

#0 /home/fileknot.com/public_html/app/core/Database.class.php(191): App\Core\Database->notify(Object(PDOException))
#1 /home/fileknot.com/public_html/app/helpers/DownloadTrackerHelper.class.php(73): App\Core\Database->query('...')
#2 /home/fileknot.com/public_html/app/controllers/FileController.class.php(158): App\Helpers\DownloadTrackerHelper::clearTimedOutDownloads()
#3 [internal function]: App\Controllers\FileController->downloadHandler('...')
#4 /home/fileknot.com/public_html/app/helpers/RouteHelper.class.php(395): call_user_func_array(Array, Array)
#5 /home/fileknot.com/public_html/app/core/Framework.class.php(222): App\Helpers\RouteHelper::processRoutes()
#6 /home/fileknot.com/public_html/app/core/Framework.class.php(25): App\Core\Framework::dispatch()
#7 /home/fileknot.com/public_html/index.php(21): App\Core\Framework::run()