Essayez ceci :
select p1.*,p2.total,p2.paid,p3.hotel from customers p1
inner join payments p2 on p1.uid=p2.uid
inner join projects p3 on p1.pid=p3.pid
Essayez ceci :
select p1.*,p2.total,p2.paid,p3.hotel from customers p1
inner join payments p2 on p1.uid=p2.uid
inner join projects p3 on p1.pid=p3.pid