Added '' to active variable as if its empty there is a SQL error