The other reason you will see this error is if you have the order of report-wide parameters incorrect. For instance if you have the following:
@Param1
@Param2
@Param3
and you are trying to use @Param3
in a query populating @Param1
, it will throw this error. You need to use the up/down arrows at the top of the report designer to order the parameters appropriately.