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 G:\AppServ\www\cun\trade\class\trade.class.php:237 Stack trace: #0 G:\AppServ\www\cun\trade\class\trade.class.php(237): PDO->query('SELECT user_gra...') #1 G:\AppServ\www\cun\trade\detail.php(29): trade->getUserInfo(NULL) #2 {main} thrown in G:\AppServ\www\cun\trade\class\trade.class.php on line 237