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

SELECT `pins`.`pin_id`, `pins`.`user_id`, `users`.`username`, `users`.`company`, `users`.`profile_image`, `users`.`is_pro`, `pins`.`created`, `pins`.`last_viewed`, `pins`.`image_id`, `pins`.`title`, `slug`, `views`, `likes`, `comments`, `popularity`, `filename`, `tags`.`term` AS category FROM (`pins`) LEFT JOIN `images` ON `pins`.`image_id` = `images`.`image_id` LEFT JOIN `users` ON `pins`.`user_id` = `users`.`id` LEFT JOIN `pins_tags` ON `pins`.`pin_id` = `pins_tags`.`pin_id` LEFT JOIN `tags` ON `pins_tags`.`tag_id` = `tags`.`tag_id` WHERE `tags`.`type` = 'category' AND `status` = 'published' ORDER BY `pins`.`created` desc LIMIT -12, 12

Filename: /home/gmaker/public_html/models/pins_model.php

Line Number: 44