thank you for reply. In statistics page of my application I want to have a list of recent users and also I want to show total number of users. there are others things too like total number of orders and recent orders. you know general information. Im trying to reduce number of queries since I want to display data from multiple tables.
@danimohamadnejad not having any code on what you've tried, what do you have now and what you are trying to achieve as an end result, it is hard to give you an advice.
Writing one query of course it is possible, but the relationship has to be setup correctly between the tables and so on. But then again, show some code.