Php Use Variable In Function Sql Syntax For Date