Fatal error: Uncaught exception 'Exception' with message 'ERROR: 1213 - Deadlock found when trying to get lock; try restarting transaction in query: CREATE TEMPORARY TABLE tmp SELECT SUM(pi.quantity) as num_on_stock, MAX(do1.distributors_orders_date_received) as last_received , p.products_id, tr.tax_rate, (pp.product_price/((100+tr.tax_rate)/100)) products_price, SUM(pi.wholesale_price_eur)/SUM(pi.quantity) as products_wholesale_price FROM products p JOIN tmpp tp ON tp.products_id=p.products_id JOIN products_instances pi ON pi.products_id = p.products_id AND pi.status_id = 3 AND pi.company_id = 1 JOIN webshop_products wp ON wp.products_id = p.products_id AND wp.webshop_id = 1 JOIN distributors_orders do1 ON do1.distributors_orders_id = pi.distributors_orders_id JOIN product_price pp ON pp.product_id=p.products_id AND pp.currency_id=2 AND pp.company in /var/www/recharge/tris/public/extern/legacy/includes/classes/db/mysql_access.php on line 505
Prišlo je do napake strežnika.

Naša ekipa je bila obveščena.