PHP error happened

Technical information
Error type8192
Error descriptionFunction set_magic_quotes_runtime() is deprecated
URLwww.expedict.com/portal/chart_service-minutes_2.php?
Error file/var/www/vhosts/expedict.com/httpsdocs/portal/chart_service-minutes_xml_2.php
Error line12
SQL query