Fatal error: Uncaught exception 'mysqli_sql_exception' with message '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 /home2/saurabh/public_html/lockapp/wifibtlockclientV2.php:25 Stack trace: #0 /home2/saurabh/public_html/lockapp/wifibtlockclientV2.php(25): mysqli_query(Object(mysqli), 'SELECT * FROM d...') #1 {main} thrown in /home2/saurabh/public_html/lockapp/wifibtlockclientV2.php on line 25