데이터베이스 오류가 발생하였습니다.

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 '-10, 10' at line 5

SELECT *, (SELECT username FROM users WHERE users.id = goods_after.user_id LIMIT 1) AS after_id FROM (`goods_after`) WHERE (state = 2 OR state = 3) ORDER BY `regdate` DESC LIMIT -10, 10

Filename: /home/newbidpot/application/models/event_model.php

Line Number: 47