Avevi pensato giusto.
Per convertirlo in timestamp c'è la funzione MySQL UNIX_TIMESTAMP()

SELECT UNIX_TIMESTAMP(campoData)...