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 's Organizations'\x0A\x09\x09and e_state != '' GROUP BY e_state\x0A\x09\x09ORD...' at line 3