logics Error
Ошибка в mysql запросе
15
}
16
17
public function getPageLimit($start,$qty,$WHERE){
18 return $this->db->select("SELECT * FROM {$this->table} WHERE `parentLink` = '{$WHERE}' ORDER BY `dateUpdate` DESC LIMIT {$start},{$qty}");
19
}
20
21
public function getPageCount($WHERE){
Описание ошибки: 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 '-10,10' at line 1
SQL строка: SELECT * FROM article WHERE `parentLink` = '/sovetnik/' ORDER BY `dateUpdate` DESC LIMIT -10,10
Вызов из /var/www/u0059048/data/www/8.mriya-irk.ru/Component/Article_Section/Articles/Class.php строка № 18