I have 3 tables with this structure
Itriedbutcouldonlygetintotwotables,butIwouldneedtobeinthe3to"save / clean" code.
It is necessary to enter in the table helpcenter_topics
to get a 20
topics plus recentemente inseridos
, get the username
of those who posted taking into account that in the helpcenter_topics
table the uid
column represents idu
associative that binds it to the users
table and also get the username
from the last person who posted a response on that topic I take into account that the topics_answers
table is where the responses are stored and that topic_id
is id
associative linking helpcenter_topics
How to accomplish this in a single line of code?