phpBB : Critical Error

Error deleting old sessions

DEBUG MODE

SQL Error : 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 '-2' at line 1

DELETE FROM phpbb_sessions WHERE session_ip = '36512c2f' ORDER BY session_start ASC LIMIT -2

Line : 213
File : sessions.php