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 MySQL server version for the right syntax to use near ') and t.status = 20 and s.status = 20 group by t.template_id' at line 1
The SQL being executed was: SELECT t.template_id,t.thumbnail_url,t.title,s.* from tu_template_official as t LEFT JOIN tu_seo_special as s on t.classify_id = s.classify_id WHERE instr(s.tpl_json,t.template_id) > 0 and t.template_id in (1461980,1461982,1461763,1462004,1461982,1461977,1461980,824498,3110093,3110474,3109052,3109054,1462004,1461763,837514,3109017,1462090,1462039,1462018,1461609,) and t.status = 20 and s.status = 20 group by t.template_id

Error Info: Array
(
    [0] => 42000
    [1] => 1064
    [2] => 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 ') and t.status = 20 and s.status = 20 group by t.template_id' at line 1
)
$_GET = [
    'id' => '1007',
];

$_SESSION = [
    '__flash' => [],
];