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 '' at line 1 in /home/public/includes/mysqlshim.php:163
Stack trace:
#0 /home/public/includes/mysqlshim.php(163): mysqli_query(Object(mysqli), 'SELECT * FROM c...')
#1 /home/public/includes/flaggs.php(213): mysql_query('SELECT * FROM c...')
#2 /home/public/nav.php(184): checkcompanion()
#3 {main}
thrown in /home/public/includes/mysqlshim.php on line 163