> I must be losing it... Your first query is returning four rows because there are four matching results from the member_categories table, so it is returning m.company for each one of those. If you only want it to return one record from members no matter how many are in member_categories, you need to use a LEFT JOIN instead of joining by the WHERE clause.
SELECT m.company FROM members m LEFT JOIN member_categories d ON m.member_id = d.member_id WHERE m.member_id = #session.member_id# Syntax may be a little off, been a while since I wrote a join off the top of my head. -Justin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206784 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

