I am doing 3 queries to get various data in my script. It runs fine, but can probably be done more efficiently using one query. I fine with doing basic one table queries, but