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 '?osCsid=tcbe5v1e1eiqk8d4qom9msln66 order by rand(),timestamp DESC' at line 1

select pollid, catID FROM phesis_poll_desc where poll_open='0' and poll_type='0' and catID = 416?osCsid=tcbe5v1e1eiqk8d4qom9msln66 order by rand(),timestamp DESC