Hi how could I retrieve data with such a query? The point is, I would need to save the category and country in as a result of filtering.
He tried foreach but it didn't work. Need to call another function on the builder?
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous (SQL: select * from countries where exists (select * from categories inner join country_category on categories.id = country_category.category_id where countries.id = country_category.country_id and id = 1) and country_code is null limit 1)