Unable to run pageCount (1)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 Visible=1 AND ShowInMenu=1' at line 1SELECT count(DISTINCT c.id) as recCount FROM categories c WHERE 1 AND c.`Deleted`=0 AND ParentID= AND Visible=1 AND ShowInMenu=1