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 'order by ats.sort_order asc' at line 5

SELECT at.*, ats.rows FROM `articles_type` at, `articles_type_sort` ats where at.id = ats.article_type and ( at.id =1 or at.id =2 ) and ats.site_id = order by ats.sort_order asc

[TEP STOP]