Error

Uncaught exception: 'PDOException'

Message: 'SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction'

Stack trace:

#0 /var/www/html/ucuzu.az/App/Models/Product.php(241): PDOStatement->execute(Array)
#1 /var/www/html/ucuzu.az/App/Controllers/Web.php(299): App\Models\Product->viewed()
#2 [internal function]: App\Controllers\Web->productAction()
#3 /var/www/html/ucuzu.az/Core/Controller.php(48): call_user_func_array(Array, Array)
#4 /var/www/html/ucuzu.az/Core/Router.php(125): Core\Controller->__call('product', Array)
#5 /var/www/html/ucuzu.az/index.php(81): Core\Router->dispatch('web/product/218...')
#6 {main}

Thrown in '/var/www/html/ucuzu.az/App/Models/Product.php' on line 241