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=j7autv1n5itr55qhmkcet68fj6 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 = 1656?osCsid=j7autv1n5itr55qhmkcet68fj6 order by rand(),timestamp DESC