[1] : select tid from user_post where pid='640950' limit 1 
Array
(
    [tid] => 640951
)
Array
(
)
[2] : stage2
[3] : stage3