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