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 '-20, 20' at line 6

SELECT `photos`.`category`, `photos`.`filename` as `image`, `photos`.`caption` as `description`, `photos`.*, ('photo') AS asset_type FROM `photos` WHERE `status` = 'publish' AND `user_id` = '170' ORDER BY `created` DESC LIMIT -20, 20

Filename: models/Membermodel.php

Line Number: 204