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 'and BLG.status=1 order by BLG.created_date DESC limit 10' at line 1

Select AUTH.name, BLG.* from tsr_microsite_blog BLG INNER JOIN tsr_article_authors as AUTH ON BLG.auth_id=AUTH.id where relation_id= and BLG.status=1 order by BLG.created_date DESC limit 10

Filename: /var/www/html/my_app_ms/models/microsites/model_microsite.php

Line Number: 6418