A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/blog.php

Line Number: 70

ISG - Industrial Supplay Gate Trading Est.

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: mada/category.php

Line Number: 48

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 ' REPLACE(madacms_posts.category, ' ', ',')) ORDER BY madacms_posts.post' at line 19

SELECT madacms_posts.post_id, madacms_posts.title, madacms_posts.subtitle, madacms_posts.excerpt, madacms_posts.post_type, FROM_UNIXTIME(madacms_posts.date, '%Y/%m/%d') AS date, FROM_UNIXTIME(madacms_posts.date, '%Y') AS year, FROM_UNIXTIME(madacms_posts.date, '%M') AS month, FROM_UNIXTIME(madacms_posts.date, '%d') AS day, madacms_posts.front_image, madacms_posts.attachments, madacms_writers.user_id, madacms_writers.display_name as writer_name, madacms_writers.writer_image FROM (`madacms_posts`) LEFT JOIN `madacms_writers` ON madacms_posts.user_id = madacms_writers.user_id WHERE madacms_posts.priority != '90' AND madacms_posts.status = '1' AND madacms_posts.post_type = 0 AND FIND_IN_SET(, REPLACE(madacms_posts.category, ' ', ',')) ORDER BY madacms_posts.post_id DESC LIMIT 20