Ошибка синтаксиса, помогите
Не могу понять в чем ошибка
if($this->db->query("INSERT INTO `".$this->cfg->config['table_user']."`(`UserLogin`, `UserPassword`, `UserEmail`, `UserDateRegister`, `UserDateLogin`, `UserRefer`)
VALUES ('".$_GET['login']."', '".$this->GenPassword($_GET['password'], false)."', '".$_GET['email']."', '".$this->Date()."', '".$this->Date()."', '".$refer"')")) {
return $this->cj(true, "RegUser", "0", "code-4");
} else {
return $this->cj(true, "RegUser", "1", "code-5");
}