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 'OR g.team_id = 575) AND g.game_id = 10807 AND (g.event_id = 1 OR g.event_id = 6 ' at line 2
The SQL being executed was: SELECT `g`.`minute`, `p`.`ru` AS `name`, `g`.`event_id`, `g`.`team_id`, `g`.`player_id`, `g`.`assist_id`, `pa`.`ru` AS `assist_name`, `p`.`number` FROM `football_game_events` `g` RIGHT JOIN `football_players` `p` ON p.id = g.player_id LEFT JOIN `football_players` `pa` ON pa.id = g.assist_id WHERE
(g.team_id = OR g.team_id = 575) AND g.game_id = 10807 AND (g.event_id = 1 OR g.event_id = 6 OR g.event_id = 2)
ORDER BY (g.minute + 0)

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 'OR g.team_id = 575) AND g.game_id = 10807 AND (g.event_id = 1 OR g.event_id = 6 ' at line 2
)
$_GET = [
    'id' => '10807',
];

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