A Database Error Occurred

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

select * from members as m INNER join member_other_detail as mo on m.MemberId=mo.MemberId where m.IsDeleted=0 and m.Status=1 ORDER by m.MemberId DESC limit -10,10

Filename: controllers/Home.php

Line Number: 322