Please open separate threads for separate issues and try to handle them one at a time. We want to keep the forums easy for others to follow, and when a thread about MySQLi query errors talks about Security Assist page access that can be confusing.
Yes, that is the same checkbox I was referring to in the UI.
Did you follow the instructions: "Go to WebAssist->Security Assist-> Pages Manager to restrict access to pages you want to block."
That should make the pages inaccessible until you log in. If that works, then attach a page that isn't working correctly with access restriction applied and I can take a look to see if I can spot a problem.