SQL: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND p.id != 626 AND p.active = 1 ORDER BY rand() LIMIT 4' at line 2 Ostatnie zapytanie: (SELECT p.*, c.seolink as cat FROM `tosia_products` p LEFT JOIN `tosia_products_category` c ON c.id = p.categoryId WHERE p.lang="pl" AND p.categoryId = AND p.id != 626 AND p.active = 1 ORDER BY rand() LIMIT 4)
Ilość wykonanych zapytań: 16
Całkowity czas wykonywania zapytań: 0.0060932636260986

Plik: /home/tosia/domains/tosia.idl.pl/public_html/library/db.class.php
Linia: 89
Trace: #0 /home/tosia/domains/tosia.idl.pl/public_html/library/Products.class.php(521): db->query('SELECT p.*, c.s...') #1 /home/tosia/domains/tosia.idl.pl/public_html/controllers/ProductsController.class.php(131): Products->getOtherProducts(NULL, '626', 4) #2 /home/tosia/domains/tosia.idl.pl/public_html/controllers/ProductsController.class.php(17): ProductsController->details() #3 /home/tosia/domains/tosia.idl.pl/public_html/controllers/PageController.class.php(189): ProductsController->products() #4 /home/tosia/domains/tosia.idl.pl/public_html/index.php(85): PageController->showPage(Array) #5 {main}
Kod: 0