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 ') AND c.is_sale=1' at line 1' in /home/f/falcon6k/sanberg.ru/public_html/core/mysql_db.php:35 Stack trace: #0 /home/f/falcon6k/sanberg.ru/public_html/core/mysql_db.php(35): PDOStatement->execute(Array) #1 /home/f/falcon6k/sanberg.ru/public_html/controllers/sales.php(20): MysqlDB->rs('SELECT DISTINC...') #2 /home/f/falcon6k/sanberg.ru/public_html/index.php(54): SalesController->indexAction() #3 {main} thrown in /home/f/falcon6k/sanberg.ru/public_html/core/mysql_db.php on line 35