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

SELECT * FROM (`lp_fotos`) WHERE `album_id` IS NULL AND `sichtbar` = 1 ORDER BY `foto_id` asc, `sort` asc LIMIT -5, 5

Filename: /kunden/368487_2232/webseiten/LP_2012/models/gallery_model.php

Line Number: 85