You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND location =1 AND adm_active =1 AND portail_clients.adm_client_type > 3 AND d' at line 57