This is incorrect. You can't join the users table and the statuses_tags tables, they don't have a primary key and foreign key, respectively, you can use to join them. Also, even if the query worked as you intended it to, it would return statuses that have at least one status with a tag equal to 'food', not those with more than one staus with a 'food' tag..