You're trying to use variables that you've not yet declared. The errors are telling you exactly which ones are the offending variables.
Type: Posts; User: curmudgeon
You're trying to use variables that you've not yet declared. The errors are telling you exactly which ones are the offending variables.