SELECT * FROM `xxx_assignations` WHERE ( ( `right_element` = '' AND `right_user` = '' AND `right_category` = '' ) ) DB error