Just read your post, are you sure you have a 12 VDC photo cell ? It sounds like a 12 VAC photo cell.

If it is a 12 VAC photo cell, white wire is neutral, black wire is hot and red wire is the switched load.