DBException!
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 '-6, 12' at line 1
in file: /home/h67267/data/www/olma.kh.ua/app/lib/db.php
at line: 39
Trace:
0 -> file -> /home/h67267/data/www/olma.kh.ua/app/Model/Model.php
line -> 109
function -> q
class -> MySQL
type -> ->
args -> Array
(
[0] => select * from `olma_prod` where visible = 1 and cat = '44' and shop = '0' order by prior desc limit -6, 12
)
1 -> file -> /home/h67267/data/www/olma.kh.ua/app/Model/Model.php
line -> 82
function -> q
class -> Model_Model
type -> ->
args -> Array
(
[0] => select * from `olma_prod` where visible = 1 and cat = '44' and shop = '0' order by prior desc limit -6, 12
)
2 -> file -> /home/h67267/data/www/olma.kh.ua/app/Model/Prod.php
line -> 188
function -> getall
class -> Model_Model
type -> ->
args -> Array
(
[0] => Array
(
[where] => visible = 1 and cat = '44' and shop = '0'
[order] => prior desc
[limit] => -6, 12
)
)
3 -> file -> /home/h67267/data/www/olma.kh.ua/app/controller/catalog.php
line -> 157
function -> getall
class -> Model_Prod
type -> ->
args -> Array
(
[0] => Array
(
[where] => visible = 1 and cat = '44'
[order] => prior desc
[limit] => -6, 12
)
)
4 -> file -> /home/h67267/data/www/olma.kh.ua/cms.php
line -> 42
args -> Array
(
[0] => /home/h67267/data/www/olma.kh.ua/app/controller/catalog.php
)
function -> include