A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/company.php

Line Number: 39

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/content/49/10456449/html/trustmytips/system/core/Exceptions.php:185)

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 'and r.status='1' order by r.dt_post desc' at line 1

SELECT r.*,u.name,u.profile_pic,u.reg_type from reviews as r join users as u on r.users_id=u.users_id where r.company_id= and r.status='1' order by r.dt_post desc

Filename: /home/content/49/10456449/html/trustmytips/models/review_model.php

Line Number: 21