PHP error happened

Technical information
Error type8192
Error descriptionmysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.
URLwww.attorneysdirectconnect.com/search/legal_members_list.php?
Error file/home/attorne3/public_html/search/include/dbconnection.php
Error line122
SQL querySELECT AgentID, LastName, FirstName, city, `state`, country, zipcode, firm, primary_specialty, PriorityLevel, AgentID AS AgentID1 FROM legal_members where ( PriorityLevel ='2' OR PriorityLevel ='3' ) ORDER BY PriorityLevel DESC,RAND() limit 0,20