I have the following problem:
I have two tables, the following tables:
tabela mensagens
+----+-------------------+-------+---------------------+
| id | mensagem | _de | hora |
+----+-------------------+-------+---------------------+
| 1 | teste de mensagem | tiago | 2015-12-04 14:56:41 |
+----+-------------------+-------+---------------------+
tabela amigos
+----+--------+--------------+
| id | user | amigos |
+----+--------+--------------+
| 1 | italos | igors;tiago; |
+----+--------+--------------+
I would like to make the following query: that I would receive the result of all messages only if there is in the friends table the _de value of the messages table. Thank you all.