Select CategoryName, Description, MetaDescription, Metadata from Categories where SubCategoryKey = ORDER By SortOrder, CategoryName 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 SortOrder, CategoryName' at line 1
Select CategoryName, ShortDescription, Description, CategoryKey from Categories where SubCategoryKey = and Hidden = 0 ORDER By SortOrder, CategoryName 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 'and Hidden = 0 ORDER By SortOrder, CategoryName' at line 1