Should $p_user_id be casted to (int)?