A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/myaccount.php

Line Number: 839

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 413

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 'order by date_format(str_to_date(s.date_requested, '%d-%m-%Y') , '%m-%Y') desc' at line 1

SELECT s.*, st.title from t_samples s left join t_status st on st.id = s.status where s.user_id= order by date_format(str_to_date(s.date_requested, '%d-%m-%Y') , '%m-%Y') desc

Filename: /home/decorp/public_html/models/pagemodel.php

Line Number: 168