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