I want to know if it is possible to create a query where the WHERE clause has one condition but the value is an array.
This is the code & image related table in the database:
//array in user.id_lokasi => (PL001,PL002,PL003)
SELECT * FROM `lokasi`
WHERE `id_lokasi` IN (SELECT id_lokasi FROM user WHERE id_user='admin')

lokasiWHEREid_lokasiIN ('PL001', 'PL002', 'PL003'); its correct, but when i select from table user there is no data show