Error: Undefined offset: 0
Line: 62
File: categories.php
Error: Invalid argument supplied for foreach()
Line: 71
File: categories.php
Error: Invalid argument supplied for foreach()
Line: 124
File: categories.php
Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 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 ')
GROUP BY cat_id' at line 4
Line: 187
File: categories.php