This looks kind of weird no ? Why not use the query builder ?