SELECT titlede as title, seourlde as seourl FROM ilance_content WHERE ispublished = '1' AND visible = '1' AND id!='18' AND (location = 'header' OR location = 'both') ORDER BY sort ASC SELECT titlede as title, seourlde as seourl FROM ilance_content WHERE ispublished = '1' AND visible = '1' AND id!='18' AND (location = 'footer' OR location = 'both') ORDER BY sort ASC SELECT titlede as title, seourlde as seourl FROM ilance_content WHERE ispublished = '1' AND visible = '1' AND id!='18' AND (location = 'footer' OR location = 'both') ORDER BY sort ASC