I am trying to fetch data from multiple table but i am getting this error The used SELECT statements have a different number of columns
4 tables will have different number of columns i am doing this because i have common edit profile page number filds may vary.So how can i select data from different table
this is my query
SELECT * FROM tbl_usrs where user_id='{$id}'
UNION ALL
SELECT * FROM nm_camping_personal where camp_user_id='{$id}'
UNION ALL
SELECT * FROM hotel_registration where hotel_user_id='{$id}'
plz help!!