so far, i got a few answers.
the weird thing that was happening, if i browsed back and foward through the pages...
the error disapear and i had the page loaded and fine,
somehow it's the cookies storaged in my computer.
by the way...
why do we use cookies instead of just sessions like it's in asp? security stuff?
i debuged the error and make it happens again.
So i'm sure the error is because
i created an aplication type: "webbloger" bellow a new subsite. and got the error, then i tryed to delete the aplication, even the subsite but the error's still there. SO even "deleting does not" erase the relations created.
Then somehow, it crashes.
I believe there's trash code running the query twice.
how do i fix then without resetting the db?
finding the duplicated trash code and erase it. is that it?