I have a table of people that has the following fields, among others:
+----------------------------+
|persona_id | persona_nombre |
+-----------+----------------+
| 1 | persona 1 |
| 2 | persona 2 |
+-----------+----------------+
And I have a table of patterns with the following fields:
+--------------------------+
|persona_nombre | padrones |
+---------------+----------+
| persona 1 | 1,2 |
| persona 2 | 1 |
+--------------------------+
There is some way to make a query that returns the following:
+-----------------------+
|persona_id | padron_id |
+-----------+-----------+
| 1 | 1 |
| 1 | 2 |
| 2 | 1 |
+-----------+-----------+