A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/C_award.php

Line Number: 56

Backtrace:

File: /home/trie/public_html/application/controllers/C_award.php
Line: 56
Function: _error_handler

File: /home/trie/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 569

Backtrace:

File: /home/trie/public_html/application/models/M_awards.php
Line: 81
Function: query

File: /home/trie/public_html/application/controllers/C_award.php
Line: 58
Function: web_get_sidebar_awards

File: /home/trie/public_html/index.php
Line: 292
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 MariaDB server version for the right syntax to use near 'AND award_content.enable = 1 AND award_content.recycle = 0 ORDER BY `year` DE' at line 4

SELECT award_content.*,fiona_drive.url AS image_url,fiona_drive.file_name AS image_file_name FROM award_content LEFT JOIN fiona_drive ON award_content.header_image = fiona_drive.id WHERE award_content.id != 9 AND award_content.award_id = AND award_content.enable = 1 AND award_content.recycle = 0 ORDER BY `year` DESC

Filename: models/M_awards.php

Line Number: 81