Fixed random date idea function

-Now only selects if idea is public
-Also now includes last date plan in table