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 ai.language_id = '2') where a.articles_status = '1' and a.articles_id = '558' at line 1

select a.articles_id, a.articles_date_added, (case when a.articles_last_modified is null then a.articles_date_added else a.articles_last_modified end ) as articles_last_modified, a.articles_date_available, a.authors_id, ad.articles_name, ad.articles_description, ad.articles_url, au.authors_name, a.articles_id, a.articles_image,au.web, ai.authors_summary from articles a left join articles_description ad on (a.articles_id=ad.articles_id) left join authors au on (a.authors_id = au.authors_id) left join authors_info ai on (au.authors_id = ai.authors_id and and ai.language_id = '2') where a.articles_status = '1' and a.articles_id = '558' and ad.language_id = '2'

[TEP STOP]