MySQL ‘user_id’ in where clause is ambiguous problem
You simply need to specify which user_id to use, since both the user_info and user table have a field called user_id: … WHERE user.user_id=1 SQL wouldn’t tolerate this ambiguity, since for what it knows, both fields can represent totally different data.