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 'AND a.active = 1 ORDER BY a.id DESC LIMIT 5' at line 1 [string:Exception:private] => [code:protected] => 42000 [file:protected] => /web/blok-optom.ru/protected/src/functions.php [line:protected] => 76 [trace:Exception:private] => Array ( [0] => Array ( [file] => /web/blok-optom.ru/protected/src/functions.php [line] => 76 [function] => query [class] => PDO [type] => -> ) [1] => Array ( [file] => /web/blok-optom.ru/protected/general/товары/товар.act [line] => 151 [function] => db_select ) [2] => Array ( [file] => /web/blok-optom.ru/protected/src/functions.php [line] => 214 [args] => Array ( [0] => /web/blok-optom.ru/protected/general/товары/товар.act ) [function] => include ) [3] => Array ( [file] => /web/blok-optom.ru/protected/src/functions.php [line] => 225 [function] => get_lay ) [4] => Array ( [file] => /web/blok-optom.ru/index.php [line] => 56 [function] => get_lay ) ) [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 'AND a.active = 1 ORDER BY a.id DESC LIMIT 5' at line 1 )
)
Комментарий