rankDB.class.php :: Query failed: SELECT dr.spelarId, CONCAT(s.namn, ' [#', dr.spelarId, ']') AS namn, ROUND(dr.ranking * 1000, 0) AS ranking FROM (deltRank AS dr INNER JOIN turnering AS t ON dr.tId = t.tId) INNER JOIN spelare AS s ON s.spelarId = dr.spelarId WHERE curdate( ) - INTERVAL 18 MONTH <= t.datum AND dr.spelarId !=0 AND t.datum >= '2020-07-25' ORDER BY dr.spelarId, dr.ranking DESC limit ; SQL said: