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 != 2116 ORDER BY rand() LIMIT 12' at line 3 Ostatnie zapytanie: (SELECT p.*, IF(pricePromo > 0, pricePromo, priceBrutto ) as price, c.seolink as cat, ( SELECT file FROM `ole_gallery_images` g WHERE p.galleryId = g.galleryId ORDER BY position LIMIT 1) as thumb2 FROM `ole_products` p LEFT JOIN `ole_products_category` c ON c.id = p.categoryId WHERE total_stan > 0 AND p.lang="pl" AND p.categoryId = AND p.id != 2116 ORDER BY rand() LIMIT 12)
Ilość wykonanych zapytań: 8
Całkowity czas wykonywania zapytań: 0.0086662769317627

Plik: /home/oleksyobuwie/ftp/library/db.class.php
Linia: 89
Trace: #0 /home/oleksyobuwie/ftp/library/Products.class.php(518): db->query('SELECT p.*, IF(...') #1 /home/oleksyobuwie/ftp/controllers/ProductsController.class.php(156): Products->getOtherProducts(NULL, '2116', 12) #2 /home/oleksyobuwie/ftp/controllers/ProductsController.class.php(17): ProductsController->details() #3 /home/oleksyobuwie/ftp/controllers/PageController.class.php(191): ProductsController->products() #4 /home/oleksyobuwie/ftp/index.php(77): PageController->showPage(Array) #5 {main}
Kod: 0