0
From what I understand, you want to do something like this:
$sql = "select * from usuarios where email <> '$email' and ( select concat( '.', jainscrito, '.') from usuarios where email = '$email' ) not like concat( '%.', convert(id, char(5)), '.%') ";
Make sure it fits you.
By your question you can not understand exactly what you want to do. Could detail more?
– Francisco
I want to list the ID of the table that is not in the field JAINSCRITO @Francisco
– Arsom Nolasco
If you use a version larger than 5.7 Mysql, change the data type of your field
jainscrito
for the JSON type and so you will be able to natively manipulate the values within it.– Giovanni Nunes