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/0/d/a/hemmingstad.no/httpd.www/cg/class/database.php:43 Stack trace: #0 /customers/0/d/a/hemmingstad.no/httpd.www/cg/menu/menu.inc(31): Database->getRows('select if(foren...', Array) #1 /customers/0/d/a/hemmingstad.no/httpd.www/cg/program_year_v2a.php(18): menu(Object(Database)) #2 {main} thrown in /customers/0/d/a/hemmingstad.no/httpd.www/cg/class/database.php on line 43