Notice: Undefined offset: 0 in /home/srv174419/mtz-td.ru/controllers/tovar.php on line 26

Notice: Trying to get property of non-object in /home/srv174419/mtz-td.ru/controllers/tovar.php on line 29

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 MariaDB server version for the right syntax to use near 'order by priority' at line 1' in /home/srv174419/mtz-td.ru/controllers/tovar.php:32 Stack trace: #0 /home/srv174419/mtz-td.ru/controllers/tovar.php(32): PDOStatement->execute() #1 /home/srv174419/mtz-td.ru/classes/Router.php(103): Controller_Tovar->index() #2 /home/srv174419/mtz-td.ru/index.php(81): Router->delegate() #3 {main} thrown in /home/srv174419/mtz-td.ru/controllers/tovar.php on line 32