pass mysql column to php function variable