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 'ORDER BY gt desc, nowosc desc' at line 3 Ostatnie zapytanie: (select pro.*, IF(pro.cena_promocja > 0, pro.cena_promocja, pro.brutto ) as priceSort, kat.seolink, kat.nazwa as kategoria, kat.new_order, kat.position from produkty as pro left join kategorie as kat on pro.kategoria=kat.id where pro.stan > 0 AND aktywny = 1 AND nowosc > 1422929589 and kat.parent= ORDER BY gt desc, nowosc desc)
Ilość wykonanych zapytań: 5
Całkowity czas wykonywania zapytań: 0.0025761127471924

Plik: /home/promedia3/ftp/badura.pl/library/db.class.php
Linia: 89
Trace: #0 /home/promedia3/ftp/badura.pl/library/Shop.class.php(791): db->query('select pro.*, I...') #1 /home/promedia3/ftp/badura.pl/library/Shop.class.php(763): Shop->getNowosciIn(NULL, 1000, '', NULL) #2 /home/promedia3/ftp/badura.pl/controllers/ProductsController.class.php(59): Shop->getNowosci(NULL, 1000, '', NULL) #3 /home/promedia3/ftp/badura.pl/controllers/ProductsController.class.php(9): ProductsController->lista() #4 /home/promedia3/ftp/badura.pl/controllers/PageController.class.php(189): ProductsController->products() #5 /home/promedia3/ftp/badura.pl/index.php(90): PageController->showPage(Array) #6 {main}
Kod: 0