Scratch that - I figured it out, didn't have the single quotes around the pipeline reference in the SQL statement.
_________________________
Whether you think you can or you think you can't, you're right.