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 'RSS_FEED_MAX_ARTICLES' at line 1

select a.articles_id, a.articles_date_available, ad.articles_name, ad.articles_description, c.customers_id, c.customers_firstname, c.customers_lastname, td.topics_id, td.topics_name from articles a, articles_to_topics a2t left join topics_description td on a2t.topics_id = td.topics_id left join customers c on a.authors_id = c.customers_id, articles_description ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '2' and td.language_id = '2' order by a.articles_date_available desc, ad.articles_name limit RSS_FEED_MAX_ARTICLES

[TEP STOP]