Well, are you sure $client is set correctly? Without seeing the actual data in the tables, I can't really help you. Could be a SQL query problem, and I'm no expert w/ SQL. The folks in the "Database" forum would probably know more, but you can wait and see I spose.