Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 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 '' at line 1' in /obrot/wp-content/themes/obrot/functions.php:12 Stack trace: #0 /obrot/wp-content/themes/obrot/functions.php(12): PDO->query('SELECT nazwa FR...') #1 /obrot/wp-content/themes/obrot/functions.php(190): getCategory(Object(PDO), NULL) #2 /obrot/wp-content/themes/obrot/single_page.php(37): getOferData(Object(PDO), '40') #3 /obrot/wp-includes/template-loader.php(74): include('/obrot/wp-conte...') #4 /obrot/wp-blog-header.php(19): require_once('/obrot/wp-inclu...') #5 /obrot/index.php(17): require('/obrot/wp-blog-...') #6 {main} thrown in /obrot/wp-content/themes/obrot/functions.php on line 12