My issue was that in the raw query I was using the @parameters (that were strings) surrounded with single quotes. Removing the single quotes solved my problem.