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