Update function.lookup.php

Change mysql_real_escape_string to mysqli_real_escape_string
to make use of the mysqli function (required for TYPO3 6.2 LTS) 
mysqli_real_escape_string needs an existing connection. From my code understanding this should always be the case here.