Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', IF (sort_name = "" AND year = "", title < "", IF(sort_name = "", year < "", 1)' at line 5 in /usr/local/www/renner/records/albums.class.php:64 Stack trace: #0 /usr/local/www/renner/records/albums.class.php(64): mysqli->query('SELECT artist_n...') #1 /usr/local/www/renner/records/albums.class.php(42): albums->get_album_previous_to(NULL, NULL, '', NULL, NULL) #2 /usr/local/www/renner/records/showRecord.inc.php(86): albums->get_album_by_id(NULL) #3 /usr/local/www/renner/body.inc.php(6): include_once('/usr/local/www/...') #4 /usr/local/www/renner/records/showRecord.php(14): include('/usr/local/www/...') #5 {main} thrown in /usr/local/www/renner/records/albums.class.php on line 64