A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/page.php

Line Number: 465

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: where_clause

Filename: models/category_model.php

Line Number: 237

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 cf.descr_name ASC' at line 8

SELECT cf.id, cf.file_path, cf.descr_name, cf.created, c.name as category_name FROM category_file cf LEFT JOIN category c ON cf.category_id = c.id WHERE c.id = ORDER BY cf.descr_name ASC