sql error.....select perm_id from users_perm where user_id=