Error in SELECT SELECT Indicativo,Locator,FechaInicio,FechaFin,Fuente,dxcc,altcall1,altcall2,altcall3,altcall4,altcall5,altcall6,altcall7,altcall8,altcall9,altcall10,expeditions.cq,iota,website,Texto,actban1,actban2,actban3,actban4,actban5,actban6,actban7,actban8,actban9,actban10,actban11,actban12,actban13,actban14,actban15,actban16,actban17,actban18,actban19,actban20,actban21,actban22,actban23,actban24,actban25,actban26,actban27,actban28,ModoCW,ModoSSB,ModoDigi,ModoEME,ModoMS,ModoSAT,FechaAlta,prefix,entity,referencia,nombre,foto1,foto2,foto3,LogService,LogCall,LogIndicativo,LogService1,LogCall1,LogIndicativo1,LogService2,LogCall2,LogIndicativo2,LogService3,LogCall3,LogIndicativo3,LogService4,LogCall4,LogIndicativo4,LogService5,LogCall5,LogIndicativo5 FROM expeditions,dxcc,iota WHERE dxcc.codigo = expeditions.dxcc AND expeditions.Codigo = AND iota.referencia = expeditions.iota;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND iota.referencia = expeditions.iota' at line 1