Warning: Undefined variable $user in /home/gbhat/mario/public_html/update-profile.php on line 11

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/gbhat/mario/public_html/config/api.php:18 Stack trace: #0 /home/gbhat/mario/public_html/config/api.php(18): mysqli_query() #1 /home/gbhat/mario/public_html/config/api.php(485): fireQuery() #2 /home/gbhat/mario/public_html/update-profile.php(11): getUserById() #3 {main} thrown in /home/gbhat/mario/public_html/config/api.php on line 18