Sorry am getting this errors in my errors logs
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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/payassur/public_html/admin/index.php:13
Stack trace:
#0 /home/payassur/public_html/admin/index.php(13): PDO->query('SELECT * FROM u...')
#1 {main}
thrown in /home/payassur/public_html/admin/index.php on line 13
below is line 13
$query = $db->query("SELECT * FROM users WHERE id = $u_id");