SQL: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND p.id != 142 ORDER BY rand() LIMIT 3' at line 2

Ostatnie zapytanie: (SELECT p.* FROM `lez_products` p LEFT JOIN `lez_products_category` c ON c.id = p.categoryId WHERE p.lang="pl" AND p.categoryId = AND p.id != 142 ORDER BY rand() LIMIT 3)

Ilość wykonanych zapytań: 6

Całkowity czas wykonywania zapytań: 0.0041422843933105


Plik: /library/db.class.php
Linia: 89
Trace: #0 /library/Products.class.php(482): db->query('SELECT p.* FROM...') #1 /controllers/ProductsController.class.php(144): Products->getOtherProducts(NULL, '142', 3) #2 /controllers/ProductsController.class.php(17): ProductsController->details() #3 /controllers/PageController.class.php(205): ProductsController->products() #4 /index.php(85): PageController->showPage(Array) #5 {main}
Kod: 0