Notice: Undefined variable: journal in /home/u162441512/domains/medmaxpub.com/public_html/journal_details.php on line 99

Fatal error: Uncaught Exception: 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 'and archive='1' ORDER BY year DESC' at line 1 query: select distinct year from articles where j_id= and archive='1' ORDER BY year DESC in /home/u162441512/domains/medmaxpub.com/public_html/lib/MysqliDb/MysqliDb.php:2006 Stack trace: #0 /home/u162441512/domains/medmaxpub.com/public_html/lib/MysqliDb/MysqliDb.php(563): MysqliDb->_prepareQuery() #1 /home/u162441512/domains/medmaxpub.com/public_html/lib/MysqliDb/MysqliDb.php(619): MysqliDb->rawQuery('select distinct...', NULL) #2 /home/u162441512/domains/medmaxpub.com/public_html/journal_details.php(136): MysqliDb->rawQueryValue('select distinct...') #3 {main} thrown in /home/u162441512/domains/medmaxpub.com/public_html/lib/MysqliDb/MysqliDb.php on line 2006