Unknown column 'CategoryTitle_ua' in 'order clause'
SELECT * FROM `SC_category_articles` WHERE `CategoryParent`=1 AND `CategoryEnable` = '1'ORDER BY `CategorySort`, IF(LENGTH(`CategoryTitle_ua`), `CategoryTitle_ua`, `CategoryTitle_ru`)