A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/html/modules/users/controllers/Users.php:754)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /var/www/html/codeigniter/application/helpers/special_helper.php
Line: 478
Function: query

File: /var/www/html/modules/users/controllers/Users.php
Line: 807
Function: getUserFriends

File: /var/www/html/modules/users/controllers/Users.php
Line: 32
Function: editpopup

File: /var/www/html/index.php
Line: 299
Function: require_once

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 'OR f.toID = ) AND f.status = 1' at line 1

SELECT * FROM friendships as f JOIN users as u ON (u.userID=f.fromID) JOIN users as u1 ON (u1.userID=f.toID) WHERE (u.is_delete!=1 AND u1.is_delete!=1) AND (f.fromID = OR f.toID = ) AND f.status = 1

Filename: helpers/special_helper.php

Line Number: 478