A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/complain/public_html/system/core/Exceptions.php:185)

Filename: libraries/Session.php

Line Number: 672

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/complain/public_html/system/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 438

Database Error

A Database Error Occurred

Error Number: 126

Incorrect key file for table '/tmp/#sql_2b86_19.MYI'; try to repair it

SELECT a.id,a.company_name,a.company_service,a.complaint,a.date_posted,a.complaint_title,a.edited, b.username, c.category, d.location, COUNT(DISTINCT e.id) AS complaints_posted, AVG(f.ratings) AS post_rating FROM cb_posts a LEFT JOIN cb_users b ON a.user_id=b.id LEFT JOIN cb_categories c ON a.category_id=c.id LEFT JOIN cb_users_profile d ON a.user_id=d.user_id INNER JOIN cb_posts e ON (a.user_id=e.user_id AND e.post_status=1) LEFT JOIN cb_ratings f ON a.id=f.post_id WHERE a.type_id = 3 AND a.post_status=1 GROUP BY a.id ORDER BY a.date_posted DESC,a.id DESC LIMIT 0,10

Filename: /home/complain/public_html/models/post_model.php

Line Number: 421