I have a query
SELECT * FROM `photo` p where 4 not in (2,4,5)
from the query it is not show anything because there is 4. but why if we query
SELECT * FROM `photo` p where 4 not in (user_view)
table photo:
photo ID | user_view
1 | 2,3,4,5
it is still show the record. Why is the code not running well if we use NOT IN on the database field?
How to make the same function with
SELECT * FROM `photo` p where 4 not in (2,4,5)
I want to show the record only if the photo is haven't see by user. So it will show uniquely by user who don't have an ID in user_view.