Notice: Undefined index: id in /var/www/sms-vote/home.php on line 77

Notice: Undefined index: id in /var/www/sms-vote/home.php on line 78

Notice: Undefined index: state in /var/www/sms-vote/home.php on line 29

Notice: Undefined index: id in /var/www/sms-vote/home.php on line 30

Fatal error: Uncaught 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 'ORDER BY id' at line 1 in /var/www/sms-vote/incl/DB.php:61 Stack trace: #0 /var/www/sms-vote/home.php(30): DB->fetchAssoc('SELECT * FROM `...') #1 /var/www/sms-vote/home.php(81): displayVoting() #2 /var/www/sms-vote/home.php(85): execute() #3 /var/www/sms-vote/index.php(62): require_once('/var/www/sms-vo...') #4 {main} thrown in /var/www/sms-vote/incl/DB.php on line 61