Php Array Check If Value Exists Sql Syntax W3schools