Fatal error: Uncaught PDOException: 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 'order by id ASC limit 1' at line 1 in /home/fingate/webapps/fingateapp/system/classes/generic/class.database.php:73 Stack trace: #0 /home/fingate/webapps/fingateapp/system/classes/generic/class.database.php(73): PDOStatement->execute() #1 /home/fingate/webapps/fingateapp/system/classes/generic/class.database.php(77): Database->execute() #2 /home/fingate/webapps/fingateapp/system/scripts/sql/sql_functions.php(54): Database->resultset() #3 /home/fingate/webapps/fingateapp/system/classes/generic/class.company.php(265): q() #4 /home/fingate/webapps/fingateapp/system/html/admin/fg/newApplicationP.php(39): Company->getMainUser() #5 {main} thrown in /home/fingate/webapps/fingateapp/system/classes/generic/class.database.php on line 73