Php Array Check If Value Exists Sql Syntax For Multiple Where Condition