WordPress database 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 sc.name' at line 1]select distinct sc.id, sc.category_id, sc.name, sc.description from tsa_sub_categories sc join tsa_listings_categories lc on sc.id = lc.sub_category_id where sc.category_id = order by sc.name