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 ip_address='c636cdd18871ebb4d6cfed32e26b4537'' at line 1