SELECT a.idx, a.title, a.contents, a.comment, a.comment_reply, a.hit, a.name, a.write_date, a.vote, a.thumb, a.user_idx, a.community_idx, b.name AS category2 FROM etc a LEFT JOIN category2 b ON (b.idx = a.category2) WHERE 1 AND (a.community_idx = 98) AND (a.community_idx = 98) AND (a.user_idx = 359809) AND (a.display=1) ORDER BY idx DESC LIMIT -50, 50 [nativecode=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]