There are two tables: in one project, and in another keywords to them. This query takes data from two tables at once:
SELECT * FROM pos_projects JOIN pos_keywords ON pos_projects.id = pos_keywords.pid WHERE pos_projects.userid= :userid ORDER BY id DESC But from the second table it takes only one line, and how to pick up everything?
WHERE pos_projects.userid= :userid- Mirdinpos_projectsis the first table, I need to pick up all the projects from it, and from the second (pos_keywords) pick up all the lines for each project - Mr. Andrew