Copied! Copy Stacktrace Search Stackoverflow Search Google Exception

Database Exceptionyii\db\Exception

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 lang="ru"' at line 1
The SQL being executed was: SELECT `val_tree_5`.* FROM `val_tree_5` LEFT JOIN `tree` ON `val_tree_5`.`tree_id` = `tree`.`tree_id` WHERE tree.is_enable=1 AND tree.tree_id= AND lang="ru"

Error Info: 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 lang="ru"' at line 1
)
$_GET = [
    'tree_url' => '619-08',
];

$_SESSION = [
    '__flash' => [],
    'c_lang' => 'O:21:"common\\models\\SysLang":10:{s:36:"' . "\0" . 'yii\\db\\BaseActiveRecord' . "\0" . '_attributes";a:9:{s:7:"lang_id";i:1;s:8:"lang_kod";s:2:"ru";s:9:"lang_name";s:14:"Русский";s:9:"lang_icon";N;s:14:"lang_shortname";s:2:"Ru";s:8:"lang_poz";i:1;s:8:"lang_def";i:1;s:11:"lang_enable";i:1;s:5:"local";s:5:"ru-RU";}s:39:"' . "\0" . 'yii\\db\\BaseActiveRecord' . "\0" . '_oldAttributes";a:9:{s:7:"lang_id";i:1;s:8:"lang_kod";s:2:"ru";s:9:"lang_name";s:14:"Русский";s:9:"lang_icon";N;s:14:"lang_shortname";s:2:"Ru";s:8:"lang_poz";i:1;s:8:"lang_def";i:1;s:11:"lang_enable";i:1;s:5:"local";s:5:"ru-RU";}s:33:"' . "\0" . 'yii\\db\\BaseActiveRecord' . "\0" . '_related";a:0:{}s:47:"' . "\0" . 'yii\\db\\BaseActiveRecord' . "\0" . '_relationsDependencies";a:0:{}s:23:"' . "\0" . 'yii\\base\\Model' . "\0" . '_errors";N;s:27:"' . "\0" . 'yii\\base\\Model' . "\0" . '_validators";N;s:25:"' . "\0" . 'yii\\base\\Model' . "\0" . '_scenario";s:7:"default";s:27:"' . "\0" . 'yii\\base\\Component' . "\0" . '_events";a:0:{}s:35:"' . "\0" . 'yii\\base\\Component' . "\0" . '_eventWildcards";a:0:{}s:30:"' . "\0" . 'yii\\base\\Component' . "\0" . '_behaviors";a:0:{}}',
];