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