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 Registered_SubCategory_id_60 ASC' at line 1SELECT * FROM registered_subcategories NATURAL JOIN business_subcategories NATURAL JOIN general__business_categories WHERE Business_id_13 = ORDER BY Registered_SubCategory_id_60 ASC;