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 ',1460847,1460845,1460516,1461093,1460992,1460847,1460856,1461319,1461224,771756,' 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 (1460434,772007,1461228,1461192,1461008,1461036,1461106,1461105,1461036,1461019,1460513,1461008,772007,1461105,1460434,1461106,1460995,1460994,771330,771314,1460993,1460992,1460845,1460856,1460891,1460856,,1460847,1460845,1460516,1461093,1460992,1460847,1460856,1461319,1461224,771756,771568,1462123) 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 ',1460847,1460845,1460516,1461093,1460992,1460847,1460856,1461319,1461224,771756,' at line 1
)
$_GET = [
    'id' => '1005',
];

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