I used Larry's post of custom authentication for getting users logged in with Yii and now I need to separate what each user can see by having a siteid field to not show custb data to custa. I used a post in the Yii forums to get an idea of what has to be done.
My problem now is that for the login i don't want the select statement to have the where clause siteid = ? appended. Does anyone have a better solution for this or an idea of how to not have the where clause appended when there logging in?