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

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