Update local error (web): 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 'ORDER BY A.sort' at line 2
SELECT A.*, B.url FROM news_tbl A LEFT JOIN meta_tbl B ON A.Id = B.idtable WHERE A.active = 1 AND tab = 'news_tbl' AND lang = 'vn' AND A.Id != 509 AND idcat = ORDER BY A.sort