Hiding PHP / MYSQL error message
===

I have a website based on Xcart. It’s working fine .However , When I go to the address (Manually accessed the link ) `www.mysite.com/"Xx<XaXaXXaXaX>xX` I get an error message. 

    

> <b><font color="darkred">INVALID SQL: </font></b>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 '&quot;,)`'
> LIMIT 1' at line 1<br /><b><font color="darkred">SQL QUERY
> FAILURE:</font></b>SELECT xid FROM xcart_session_history WHERE ip =
> INET_ATON('165.193.42.141') AND host = '&quot;XxxXx';&quot;,)`' LIMIT
> 1<br /><b><font color="darkred">INVALID SQL: </font></b>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
> ';&quot;,)`', 'e8bc1df13aab2c25c7560512a5029eb1')' at line 1<br
> /><b><font color="darkred">SQL QUERY FAILURE:</font></b>REPLACE INTO
> xcart_session_history (`ip`, `host`, `xid`) VALUES
> (INET_ATON('165.193.42.141'), '&quot;XxxXx';&quot;,)`',
> 'e8bc1df13aab2c25c7560512a5029eb1')<br /><br /><br />




I find this as vulnerability on my system as it reveals the **table name** and other **details** etc.


**Question** : I would like to disable PHP/ MYSQL to  show this message on the screen.How could I disable it ?