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='224cd750e7b5544cc0a2ac046d3fcbbf'' at line 1