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