Fatal error: Uncaught 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 'order by fra desc' at line 1select if(forening='',concat(etternavn,', ',fornavn),forening) as label, d1.id from hks_kunder2 d2, hks_bestillinger d1 where d2.id=d1.kunde and d1.avdeling= order by fra desc in /customers/6/4/0/samsitt.net/httpd.www/cg/class/database.php:43 Stack trace: #0 /customers/6/4/0/samsitt.net/httpd.www/cg/menu/menu.inc(21): Database->getRows('select if(foren...') #1 /customers/6/4/0/samsitt.net/httpd.www/cg/program14d.php(64): menu(Object(Database)) #2 {main} thrown in /customers/6/4/0/samsitt.net/httpd.www/cg/class/database.php on line 43