• I'm running this but I'm getting

    (0 row(s) affected)

    Msg 102, Level 15, State 1, Line 11

    Incorrect syntax near ')'.

    I'm trying to track it down but it's a little complicated, and it's still running so I don't want to mess with it until it's finished. Any ideas on what could cause this?