Warning: Undefined variable $a in /home/saythatsgood/saythatsgood.com/campaigns.php on line 58

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 ''3'' ORDER BY `id` DESC LIMIT 400' at line 1 in /home/saythatsgood/saythatsgood.com/campaigns.php:87 Stack trace: #0 /home/saythatsgood/saythatsgood.com/campaigns.php(87): mysqli_query(Object(mysqli), 'SELECT * FROM `...') #1 /home/saythatsgood/saythatsgood.com/campaigns.php(73): dbm('SELECT * FROM `...', 'text') #2 /home/saythatsgood/saythatsgood.com/campaigns.php(59): makeCamplist('3'') #3 {main} thrown in /home/saythatsgood/saythatsgood.com/campaigns.php on line 87