A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/extreme1/public_html/application/models/usluge_model.php:1)

Filename: core/Common.php

Line Number: 438

Database Error

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 8

SELECT `posts`.`post_id`, `posts`.`time`, `posts`.`title`, `text`, `posts`.`status`, `users`.`id_user`, `users`.`name` AS autor, `cats`.`id_cat`, `cats`.`title` AS kategorija, `cats`.`type` AS ktip FROM (`posts`) LEFT JOIN `post_v_user` ON `post_v_user`.`post_id` = `posts`.`post_id` LEFT JOIN `users` ON `users`.`id_user` = `post_v_user`.`user_id` LEFT JOIN `post_v_cat` ON `post_v_cat`.`id_post` = `posts`.`post_id` LEFT JOIN `cats` ON `cats`.`id_cat` = `post_v_cat`.`id_cat` WHERE `post_v_cat`.`id_cat` = '2' LIMIT -12, 12

Filename: /home/extreme1/public_html/models/tekstovi_cms_model.php

Line Number: 166