|  |  |  |  |  | 
|---|
Fatal error:  Uncaught PDOException: Query failed: 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 '-50,50' at line 7
SQL: 
    SELECT
        matches.*,
        maps.file_name as map_file_name,
        maps.screen_name as map_screen_name
    FROM matches
    JOIN maps ON matches.map = maps.id
    WHERE ranked = 1 AND (p1_relic_id = ? OR p2_relic_id = ?) ORDER BY unix_utc_time DESC  LIMIT -50,50 in /var/www/html/src/Database/Connection.php:87
Stack trace:
#0 /var/www/html/src/Database/Connection.php(98): App\Database\Connection->query('\n    SELECT\n   ...', Array)
#1 /var/www/html/esl/esl-match-list.php(68): App\Database\Connection->fetchAll('\n    SELECT\n   ...', Array)
#2 /var/www/html/esl/index.php(61): require('/var/www/html/e...')
#3 {main}
  thrown in /var/www/html/src/Database/Connection.php on line 87