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