SELECT title,id FROM #__content WHERE id=$uri->getValue('id')
When I do so I get an error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
I'm trying to take the value of a hidden field and use it in the Query (added as a field using seblod query plugin) using $cck->getValue, but it always comes back as a syntax error, just like the one you encountered.