Php Array Check If Value Exists Sql Example