try doing a repair on the tables admlog and iponline tables. These queries are valid and I show no errors in the code.
Code:
Content visible to verified customers only.
If those tables exist in your database with all the required fields and are not crashed you should have no issues.