Removing redundant logged in user check for mysql get_sql hook