Hard to say with so little information
Do you have a backup?
Drag your iPhoto library from the pictures folder to the. Desktop, launch Time Machine, go back to a time before the problem, select the iPhoto library and click restore. After it is done launch iPhoto
Post back with the results