Notice: Undefined variable: tablename in /var/www/sumitsiracademy.com/htdocs/actions/check-coupon.php on line 31

Notice: Undefined variable: field_name in /var/www/sumitsiracademy.com/htdocs/actions/check-coupon.php on line 31

Notice: Undefined variable: pid in /var/www/sumitsiracademy.com/htdocs/actions/check-coupon.php on line 31

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'WHERE =NULL and active=1 and status=1' at line 1 in /var/www/sumitsiracademy.com/htdocs/config/config.php:36 Stack trace: #0 /var/www/sumitsiracademy.com/htdocs/config/config.php(36): PDOStatement->execute() #1 /var/www/sumitsiracademy.com/htdocs/actions/check-coupon.php(31): db->getRows('SELECT show_cou...', Array, '1') #2 {main} thrown in /var/www/sumitsiracademy.com/htdocs/config/config.php on line 36