ReportQueries.php: fix SQL syntax
This commit is contained in:
parent
681a2e4796
commit
5cacee6d1d
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ class ReportQueries {
|
|||
* @return ?array An array of the given report with the `board` and `ip` fields. Null if no such report exists.
|
||||
*/
|
||||
public function getReportById(int $id): ?array {
|
||||
$query = $this->pdo->prepare('SELECT `board`, `ip` FROM ``reports`` WHERE `id` = :id');
|
||||
$query = $this->pdo->prepare('SELECT `board`, `ip` FROM `reports` WHERE `id` = :id');
|
||||
$query->bindValue(':id', $id);
|
||||
$query->execute();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue