Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 'LIMIT 1' at line 1 in /home/ol1985/domains/alelakier.pl/public_html/model/model.php:646
Stack trace:
#0 /home/ol1985/domains/alelakier.pl/public_html/model/model.php(646): PDOStatement->execute()
#1 /home/ol1985/domains/alelakier.pl/public_html/model/model.php(724): Model->GetCategory(false)
#2 /home/ol1985/domains/alelakier.pl/public_html/model/model.php(674): Model->GetCategoryWithAllParents(false)
#3 /home/ol1985/domains/alelakier.pl/public_html/controller/category.php(15): Model->GetCategoriesTree(false)
#4 /home/ol1985/domains/alelakier.pl/public_html/index.php(209): CategoryController->category('klocki-szlifier...')
#5 {main}
thrown in /home/ol1985/domains/alelakier.pl/public_html/model/model.php on line 646