CrystalEngine Database Error

Query:select * from site_articles_tbl inner join site_articles_lang_tbl on site_articles_lang_tbl.article_id=site_articles_tbl.id where site_articles_lang_tbl.language_id=1 and id=- and site_articles_tbl.active = 1 and appeardate<='2025-04-04 22:44:56'
Error:SQLSTATE[42000]: Syntax error or access violation: 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 site_articles_tbl.active = 1 and appeardate<='2025-04-04 22:44:56'' at line 5