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 temporada =
) AND id_tipo IN (13,12) AND flg_del = ...' at line 21
The SQL being executed was: SELECT
tre.tipo_descricao as tipo,
re.descricao,
re.arquivo,
re.id_classe,
re.sexo,
re.link,
re.data_cadastro,
tb_evento.descricao as evento
FROM
cbdaorg_portal.tb_tipo_relatorio_evento tre
INNER JOIN
cbdaorg_portal.tb_relatorio_evento re ON re.id_tipo = tre.id
INNER JOIN
cbdaorg_natacao.tb_evento ON tb_evento.id = re.id_evento
WHERE
re.id_evento IN (
SELECT
id
FROM
cbdaorg_natacao.tb_evento WHERE tb_evento.id_campeonato = AND temporada =
) AND id_tipo IN (13,12) AND flg_del = 0
ORDER BY tre.ordem ASC

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 temporada = 
                    )  AND id_tipo IN (13,12) AND flg_del = ...' at line 21
)
$_GET = [
    'id' => '11763',
    'titulo' => 'final-meeting-masters-2020-regional-alto-p',
];