CREATE DEFINER=`jhise`@`localhost` PROCEDURE `project_get_by_user`(in i_account_key char(32))
BEGIN
	select
		p.id
	from
		project p
			join permissions_project perm on perm.project_id = p.id
	where
        perm.user_account_key = i_account_key;
END
