Set Sql Variable Using Select Statement In Php