Alright! All I did was basically have it call to the thread table rather than the poll table first. Don't see why that made a difference, but hey it works now.
To fix the discuss this poll link just change the first part of the query to "SELECT thread.pollid, thread.open, thread.threadid," adding the thread.thredid in there. It figures I'd forget one small part when changing it.