0
Hello, Check out this query:
SELECT `permission`.`visible`, `menu`.*
FROM `tb_permission` `permission`
LEFT JOIN `tb_menu` as `menu` ON `menu`.`id` = `permission`.`menu_id`
WHERE `permission`.`visible` = 1
AND `permission`.`type` = 0
OR `permission`.`type` = 1
AND `permission`.`role_id` = '1'
ORDER BY `menu`.`id` ASC
Now look at the result:
It should not only come results, whose field visible is equal to 1 ?

"It should not only come results, whose Visible field is equal to 1", see if the
orof your query is not bringing unwanted results– Ricardo Pontual
@Ricardopunctual, yes, it is! If I remove, I can see the correct results, I withdrew the
or, and traded for!= 2and it worked. Thank you– Wagner Fillio