try this query,
select t1.id,t2.status as IN_Status,t2.timestamp as IN_Time,t3.status as OUT_Stats,t3.timestamp as OUT_Time
from table1 t1
left join table1 t2 on (t1.id=t2.id and t2.status ='in')
left join table1 t3 on (t1.id=t3.id and t3.status ='out')
group by t1.id;
Check the example
SQL Fiddle Example