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