PHP error happened

Technical information
Error type8192
Error descriptionmysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.
URLattorneysdirectconnect.com/search/legal_members_list.php?a=search&value=1&SearchFor=NH&SearchOption=Contains&SearchField=state
Error file/home/attorne3/public_html/search/include/dbconnection.php
Error line122
SQL query