PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You don't need both appointment.userID and customers.userID - they have the same values. What's worse - they have name collision in $row['userID']. Try removing one of it from the select or use an alias:
[sql]... appointment.userID AS a_uid, customers.userID AS c_uid,[/sql]
There are 10 types of people in this world, those who understand binary and those who don't