Error SQL:

select cat.* from pn_ru_cat as cat left join pn_ru_catalog_cat as ccc on where cat.check_active=1 and order by cat.ord
MYSQL Error: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 cat.ord' at line 1