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.
Merge pull request #11 from janschreier/patch-1

Update function.lookup.php