01-13-2019, 02:58 PM
His query is exactly right then. It is a minor thing that since you are not trying to return all the data like first name and username from the users table, you can just select id instead of the entire table * , but that will make practically no difference in speed.