$sql = "SELECT * dd.user AS user, oi.user AS alt_user FROM data dd JOIN orders oi ON dd.id=oi.id WHERE dd.name LIKE :term";
I was hoping there was a way around that. There are a bunch of fields.workaround would be named your fields uniquely in these 2 tables, else you gonna write the Select query to explicitly select and liaise the fields when necessary.
Open in new window