fixed for id ambiguous error

Mysql2::Error: Column 'id' in field list is ambiguous: SELECT id FROM `roles` INNER JOIN `users_roles` ON `roles`.`id` = `users_roles`.`role_id` WHERE `users_roles`.`user_id` = 1 AND `roles`.`name` = 'admin'