Notice: Undefined variable: intMainCategoryId in /home/sodberco/public_html/shopbycategory.php on line 63

Fatal error: Uncaught mysqli_sql_exception: 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 parentcategoryid=0 and status=1 ORDER BY categoryid' at line 1 in /home/sodberco/public_html/class/clsDatabase.php:88 Stack trace: #0 /home/sodberco/public_html/class/clsDatabase.php(88): mysqli_query(Object(mysqli), 'SELECT tblcateg...') #1 /home/sodberco/public_html/class/clsCategory.php(180): Database->Query('SELECT tblcateg...') #2 /home/sodberco/public_html/shopbycategory.php(63): clsCategory::doSelect('where categoryi...') #3 {main} thrown in /home/sodberco/public_html/class/clsDatabase.php on line 88