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 'AND a.status = 'Objavljen'
ORDER BY publish_date DESC' at line 9 in /var/www/clients/client925/web76/web/category-parts/sql.php:22
Stack trace:
#0 /var/www/clients/client925/web76/web/category-parts/sql.php(22): PDO->prepare('SELECT a.id as ...')
#1 /var/www/clients/client925/web76/web/category.php(2): require_once('/var/www/client...')
#2 {main}
thrown in /var/www/clients/client925/web76/web/category-parts/sql.php on line 22