select * from users inner join tasks on users.task_id=tasks.task_id where user_id=5