Warning: A non-numeric value encountered in /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.product.php on line 34
PDOException Object
(
[message:protected] => 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 '-10, 10' at line 1
[string:Exception:private] =>
[code:protected] => 42000
[file:protected] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.mysqldatabase.php
[line:protected] => 33
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.mysqldatabase.php
[line] => 33
[function] => execute
[class] => PDOStatement
[type] => ->
[args] => Array
(
[0] => Array
(
[id] => f295a8a5-b726-a54e-b2e7-2b8a0915039c
)
)
)
[1] => Array
(
[file] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.product.php
[line] => 36
[function] => query
[class] => mysqldatabase
[type] => ->
[args] => Array
(
[0] => SELECT * FROM `product` WHERE (`categoryId` = :id) ORDER BY `datetime` DESC LIMIT -10, 10
[1] => Array
(
[id] => f295a8a5-b726-a54e-b2e7-2b8a0915039c
)
)
)
[2] => Array
(
[file] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/views/product/all.php
[line] => 15
[function] => getByCategory
[class] => product
[type] => ::
[args] => Array
(
[0] => f295a8a5-b726-a54e-b2e7-2b8a0915039c
[1] => about
)
)
[3] => Array
(
[file] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.controller.php
[line] => 17
[args] => Array
(
[0] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/views/product/all.php
)
[function] => require_once
)
[4] => Array
(
[file] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/controllers/productController.php
[line] => 111
[function] => view
[class] => controller
[type] => ->
[args] => Array
(
)
)
[5] => Array
(
[file] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.app.php
[line] => 110
[function] => all
[class] => productController
[type] => ->
[args] => Array
(
)
)
[6] => Array
(
[file] => /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/index.php
[line] => 52
[function] => mainbody
[class] => App
[type] => ->
[args] => Array
(
)
)
)
[previous:Exception:private] =>
[errorInfo] => Array
(
[0] => 42000
[1] => 1064
[2] => 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 '-10, 10' at line 1
)
)
Fatal error: Uncaught Error: Call to a member function fetchAll() on null in /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.product.php:38
Stack trace:
#0 /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/views/product/all.php(15): product::getByCategory('f295a8a5-b726-a...', 'about')
#1 /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.controller.php(17): require_once('/var/www/vhosts...')
#2 /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/controllers/productController.php(111): controller->view()
#3 /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.app.php(110): productController->all()
#4 /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/index.php(52): App->mainbody()
#5 {main}
thrown in /var/www/vhosts/zapkazavto.kz/zapkazkamaz.kz/classes/class.product.php on line 38