I ACTUALLY HAD TO PASS THE PARAMETER THROUGH 3 PAGES, THIS IS REALLY HOW IT WORKED FOR ME, SPENT MORE THAN 3 HRS TRYING TO FIGURE IT OUT. BUT WALLA...BUT ANYWAY THANKS FOR YOU HELP. BY THE WAY, WEBASSIST IS AWSOME, WITHOUT IT WOULD MAKE MY LIFE SO MUCH HARDER
===========================================
SELECT igrejas_adventistas.iID, igrejas_adventistas.iNome, igrejas_adventistas.iEndereco, igrejas_adventistas.iBairro, igrejas_adventistas.iCidade, igrejas_adventistas.iTipo, igrejas_adventistas.ipID, igrejas_adventistas.iSite, igrejas_adventistas.iFoto, pastores.pNome, pastores.pEndereco, pastores.pBairro, pastores.pCidade, pastores.pEstado, pastores.pCEP, pastores.pEmail, pastores.pTelefone, pastores.pCelular, pastores.ig1Nome, pastores.ig2Nome, pastores.ig3Nome, pastores.ig4Nome, pastores.ig5Nome, pastores.ig6Nome, pastores.ig7Nome, pastores.ig8Nome, pastores.ig9Nome, pastores.ig10Nome, pastores.pDescr, pastores.pFoto
FROM igrejas_adventistas, pastores
WHERE igrejas_adventistas.ipID = pastores.pID AND iID = colname