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 basketSession='4d671eec3e9eee9ff11f5a1397b7ad30'' at line 1