Ho risolto, era:

Codice PHP:
FOREIGN KEY (`categoria`) REFERENCES `categoria foto` (`categoria`) 
Grazie a tutti comunque.