A Database Error Occurred

Error Number: 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 '-50,50' at line 1

SELECT TIMESTAMPDIFF(MINUTE , FROM_UNIXTIME(last_login), NOW()) AS tdiff,id,fname,lname,utype,pic,created_on,clubname FROM users WHERE rating>0 ORDER BY rating DESC LIMIT -50,50

Filename: /home/r/r2opexbg/sportiwno.ru/public_html/controllers/profiles.php

Line Number: 149