Insert query not working for non-logged in user

Insert query not working for non-logged in user

tech