select system.id from user, system where user.id = system.userid and user.name = ?