Php Pass Variable To Inline Function In Sql